File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
services/dynamic-sidecar/tests/unit Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,10 @@ def backend_url() -> AnyHttpUrl:
9090@pytest .fixture
9191async def mock_environment (
9292 mock_postgres_check : None ,
93+ mock_registry_service : AsyncMock ,
9394 mock_environment : EnvVarsDict ,
9495 monkeypatch : pytest .MonkeyPatch ,
9596 rabbit_service : RabbitSettings ,
96- mock_registry_service : AsyncMock ,
9797) -> EnvVarsDict :
9898 return setenvs_from_dict (
9999 monkeypatch ,
@@ -109,13 +109,14 @@ async def mock_environment(
109109
110110@pytest .fixture
111111async def app (mock_environment : EnvVarsDict ) -> AsyncIterable [FastAPI ]:
112- lcal_app = create_app ()
112+ local_app = create_app ()
113113 # add the client setup to the same application
114114 # this is only required for testing, in reality
115115 # this will be in a different process
116- client_setup (lcal_app )
117- async with LifespanManager (lcal_app ):
118- yield lcal_app
116+ client_setup (local_app )
117+
118+ async with LifespanManager (local_app ):
119+ yield local_app
119120
120121
121122@pytest .fixture
You can’t perform that action at this time.
0 commit comments