File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,15 +40,13 @@ def db_connection(db_file):
4040
4141
4242@pytest .fixture
43- @pytest .mark .asyncio
4443async def user_manager (password_hasher , db_connection ):
4544 um = UserManager (db_connection )
4645 await um .db_sync ()
4746 yield um
4847
4948
5049@pytest .fixture
51- @pytest .mark .asyncio
5250async def topic_manager (password_hasher , db_connection ):
5351 tm = TopicManager (db_connection )
5452 await tm .db_sync ()
Original file line number Diff line number Diff line change @@ -36,15 +36,13 @@ def db_connection(db_file):
3636
3737
3838@pytest .fixture
39- @pytest .mark .asyncio
4039async def user_manager (password_hasher , db_connection ):
4140 um = UserManager (db_connection )
4241 await um .db_sync ()
4342 yield um
4443
4544
4645@pytest .fixture
47- @pytest .mark .asyncio
4846async def topic_manager (password_hasher , db_connection ):
4947 tm = TopicManager (db_connection )
5048 await tm .db_sync ()
@@ -417,4 +415,3 @@ async def test_topic_mgr_cli():
417415 stdout , stderr = await proc .communicate ()
418416
419417 assert proc .returncode == 0 , f"topic_mgr error code: { proc .returncode } - { stdout } - { stderr } "
420-
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ def db_connection(db_file):
3232
3333
3434@pytest .fixture
35- @pytest .mark .asyncio
3635async def db_session_maker (db_connection ):
3736 engine = create_async_engine (f"{ db_connection } " )
3837 db_session_maker = async_sessionmaker (engine , expire_on_commit = False )
@@ -41,7 +40,6 @@ async def db_session_maker(db_connection):
4140
4241
4342@pytest .fixture
44- @pytest .mark .asyncio
4543async def shadow_plugin (db_connection ):
4644
4745 cfg = ShadowPlugin .Config (connection = db_connection )
You can’t perform that action at this time.
0 commit comments