refactor: remove redundant pytest marks (#654)

This commit is contained in:
Oleg A 2021-08-03 23:40:14 +03:00 committed by GitHub
parent fff33e4ac9
commit f2f276b8cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 221 additions and 256 deletions

View file

@ -3,6 +3,7 @@ import pytest
from aiogram.utils.backoff import Backoff, BackoffConfig
BACKOFF_CONFIG = BackoffConfig(min_delay=0.1, max_delay=1.0, factor=2.0, jitter=0.0)
pytestmark = pytest.mark.asyncio
class TestBackoffConfig:
@ -69,7 +70,6 @@ class TestBackoff:
backoff.sleep()
assert backoff.counter == 1
@pytest.mark.asyncio
async def test_asleep(self):
backoff = Backoff(config=BACKOFF_CONFIG)
await backoff.asleep()