Skip to content

Commit e8dbbff

Browse files
committed
Use pytest auto asyncio-mode
1 parent d3ffd56 commit e8dbbff

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

setup.cfg

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ line_length = 88
2121
force_grid_wrap = 0
2222
combine_as_imports = True
2323

24+
2425
[flake8]
2526
format = wemake
2627
show-source = True
@@ -52,6 +53,10 @@ ignore =
5253
S101,
5354

5455

56+
[tool:pytest]
57+
asyncio_mode=auto
58+
59+
5560
[coverage:report]
5661
exclude_lines =
5762
pragma: no cover

tests/test_fsm/test_change_state.py

-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
IncomingMessage,
1111
lifespan_wrapper,
1212
)
13-
from pytest import mark
1413

1514
from botx_fsm import FSMCollector, FSMMiddleware
1615
from tests.state_repo import StateRepo
1716

1817

19-
@mark.asyncio
2018
async def test_changing_state_on_successful(
2119
bot_account: BotAccountWithSecret,
2220
incoming_message_factory: Callable[..., IncomingMessage],

tests/test_fsm/test_pass_args.py

-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
IncomingMessage,
1111
lifespan_wrapper,
1212
)
13-
from pytest import mark
1413

1514
from botx_fsm import FSMCollector, FSMMiddleware
1615
from tests.state_repo import StateRepo
1716

1817

19-
@mark.asyncio
2018
async def test_check_state(
2119
bot_account: BotAccountWithSecret,
2220
incoming_message_factory: Callable[..., IncomingMessage],

0 commit comments

Comments
 (0)