File tree Expand file tree Collapse file tree 3 files changed +0
-27
lines changed Expand file tree Collapse file tree 3 files changed +0
-27
lines changed Original file line number Diff line number Diff line change 2929# _session_rbac_originals = patch_rbac_decorators()
3030
3131
32- @pytest .fixture (scope = "session" )
33- def event_loop ():
34- """Create an instance of the default event loop for each test session."""
35- loop = asyncio .get_event_loop_policy ().new_event_loop ()
36- yield loop
37- loop .close ()
38-
39-
4032@pytest .fixture (scope = "session" )
4133def test_db_url ():
4234 """Return the URL for the test database."""
Original file line number Diff line number Diff line change @@ -143,17 +143,6 @@ def close(self):
143143 pass
144144
145145
146- # --------------------------------------------------------------------------- #
147- # Event-loop fixture (pytest default loop is function-scoped) #
148- # --------------------------------------------------------------------------- #
149- @pytest .fixture (name = "event_loop" )
150- def _event_loop_fixture ():
151- """Provide a fresh asyncio loop for these async tests."""
152- loop = asyncio .new_event_loop ()
153- yield loop
154- loop .close ()
155-
156-
157146# --------------------------------------------------------------------------- #
158147# SessionRegistry fixture (memory backend) #
159148# --------------------------------------------------------------------------- #
Original file line number Diff line number Diff line change 5555# ---------------------------------------------------------------------------#
5656
5757
58- @pytest .fixture (scope = "session" )
59- def event_loop ():
60- """Provide a fresh event-loop for pytest-asyncio."""
61- loop = asyncio .new_event_loop ()
62- yield loop
63- loop .close ()
64-
65-
6658@pytest .fixture ()
6759def translate ():
6860 """Reload mcpgateway.translate for a pristine state each test."""
You can’t perform that action at this time.
0 commit comments