88from taskiq .state import TaskiqState
99
1010
11- @pytest .mark .anyio
1211async def test_inmemory_success () -> None :
1312 broker = InMemoryBroker ()
1413 test_val = uuid .uuid4 ().hex
@@ -23,7 +22,6 @@ async def task() -> str:
2322 assert not broker ._running_tasks
2423
2524
26- @pytest .mark .anyio
2725async def test_cannot_listen () -> None :
2826 broker = InMemoryBroker ()
2927
@@ -32,7 +30,6 @@ async def test_cannot_listen() -> None:
3230 pass
3331
3432
35- @pytest .mark .anyio
3633async def test_startup () -> None :
3734 broker = InMemoryBroker ()
3835 test_value = uuid .uuid4 ().hex
@@ -51,7 +48,6 @@ async def _c_startup(state: TaskiqState) -> None:
5148 assert broker .state .from_client == test_value
5249
5350
54- @pytest .mark .anyio
5551async def test_shutdown () -> None :
5652 broker = InMemoryBroker ()
5753 test_value = uuid .uuid4 ().hex
@@ -70,7 +66,6 @@ async def _c_startup(state: TaskiqState) -> None:
7066 assert broker .state .from_client == test_value
7167
7268
73- @pytest .mark .anyio
7469async def test_execution () -> None :
7570 broker = InMemoryBroker ()
7671 test_value = uuid .uuid4 ().hex
@@ -87,7 +82,6 @@ async def test_task() -> str:
8782 assert result .return_value == test_value
8883
8984
90- @pytest .mark .anyio
9185async def test_inline_awaits () -> None :
9286 broker = InMemoryBroker (await_inplace = True )
9387 slept = False
@@ -104,7 +98,6 @@ async def test_task() -> None:
10498 assert not broker ._running_tasks
10599
106100
107- @pytest .mark .anyio
108101async def test_wait_all () -> None :
109102 broker = InMemoryBroker ()
110103 slept = False
0 commit comments