File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
packages/pytest-simcore/src/pytest_simcore
services/web/server/tests/unit/with_dbs Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def keep_docker_up(request: pytest.FixtureRequest) -> bool:
25
25
return flag
26
26
27
27
28
- @pytest .fixture
28
+ @pytest .fixture ( scope = "session" )
29
29
def is_pdb_enabled (request : pytest .FixtureRequest ):
30
30
"""Returns true if tests are set to use interactive debugger, i.e. --pdb"""
31
31
options = request .config .option
Original file line number Diff line number Diff line change 42
42
]
43
43
44
44
45
- @pytest .fixture
45
+ @pytest .fixture ( scope = "module" )
46
46
async def services_metadata_in_db (
47
47
asyncpg_engine : AsyncEngine ,
48
48
) -> AsyncIterator [list [dict ]]:
@@ -94,7 +94,7 @@ async def services_metadata_in_db(
94
94
yield created_services
95
95
96
96
97
- @pytest .fixture
97
+ @pytest .fixture ( scope = "module" )
98
98
async def services_consume_filetypes_in_db (
99
99
asyncpg_engine : AsyncEngine , services_metadata_in_db : list [dict ]
100
100
) -> AsyncIterator [list [dict ]]:
@@ -203,7 +203,7 @@ async def services_consume_filetypes_in_db(
203
203
yield created_filetypes
204
204
205
205
206
- @pytest .fixture
206
+ @pytest .fixture ( scope = "module" )
207
207
async def services_access_rights_in_db (
208
208
asyncpg_engine : AsyncEngine , services_metadata_in_db : list [dict ]
209
209
) -> AsyncIterator [list [dict ]]:
Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ async def aiopg_engine(postgres_db: sa.engine.Engine) -> AsyncIterator[aiopg.sa.
564
564
await engine .wait_closed ()
565
565
566
566
567
- @pytest .fixture
567
+ @pytest .fixture ( scope = "module" )
568
568
async def asyncpg_engine ( # <-- WE SHOULD USE THIS ONE instead of aiopg_engine
569
569
postgres_db : sa .engine .Engine , is_pdb_enabled : bool
570
570
) -> AsyncIterable [AsyncEngine ]:
You can’t perform that action at this time.
0 commit comments