1818from workerfacing_api .main import workerfacing_app
1919
2020
21- @pytest .fixture (scope = "session " )
21+ @pytest .fixture (scope = "package " )
2222def test_username () -> str :
2323 return "test_user"
2424
2525
26- @pytest .fixture (scope = "session " )
26+ @pytest .fixture (scope = "package " )
2727def base_dir () -> str :
2828 return "int_test_dir"
2929
3030
31- @pytest .fixture (scope = "session " )
31+ @pytest .fixture (scope = "package " )
3232def internal_api_key_secret () -> str :
3333 return "test_internal_api_key"
3434
3535
3636@pytest .fixture (
37- scope = "session " ,
37+ scope = "package " ,
3838 params = ["local" , pytest .param ("aws" , marks = pytest .mark .aws )],
3939)
4040def env (
@@ -52,7 +52,7 @@ def env(
5252 s3_testing_bucket .cleanup ()
5353
5454
55- @pytest .fixture (scope = "session " )
55+ @pytest .fixture (scope = "package " )
5656def base_filesystem (
5757 env : str ,
5858 base_dir : str ,
@@ -89,7 +89,7 @@ def base_filesystem(
8989 raise NotImplementedError
9090
9191
92- @pytest .fixture (scope = "session " )
92+ @pytest .fixture (scope = "package " )
9393def queue (
9494 env : str ,
9595 rds_testing_instance : RDSTestingInstance ,
@@ -106,7 +106,7 @@ def queue(
106106 queue .delete ()
107107
108108
109- @pytest .fixture (scope = "session " , autouse = True )
109+ @pytest .fixture (scope = "package " , autouse = True )
110110def override_filesystem_dep (
111111 base_filesystem : FileSystem , monkeypatch_module : pytest .MonkeyPatch
112112) -> None :
@@ -117,7 +117,7 @@ def override_filesystem_dep(
117117 )
118118
119119
120- @pytest .fixture (scope = "session " , autouse = True )
120+ @pytest .fixture (scope = "package " , autouse = True )
121121def override_queue_dep (
122122 queue : RDSJobQueue , monkeypatch_module : pytest .MonkeyPatch
123123) -> None :
@@ -128,7 +128,7 @@ def override_queue_dep(
128128 )
129129
130130
131- @pytest .fixture (scope = "session " , autouse = True )
131+ @pytest .fixture (scope = "package " , autouse = True )
132132def override_auth (monkeypatch_module : pytest .MonkeyPatch , test_username : str ) -> None :
133133 monkeypatch_module .setitem (
134134 workerfacing_app .dependency_overrides , # type: ignore
@@ -143,7 +143,7 @@ def override_auth(monkeypatch_module: pytest.MonkeyPatch, test_username: str) ->
143143 )
144144
145145
146- @pytest .fixture (scope = "session " , autouse = True )
146+ @pytest .fixture (scope = "package " , autouse = True )
147147def override_internal_api_key_secret (
148148 monkeypatch_module : pytest .MonkeyPatch , internal_api_key_secret : str
149149) -> str :
0 commit comments