Skip to content

Commit 7f6ecda

Browse files
author
Andrei Neagu
committed
rename
1 parent a02f6e3 commit 7f6ecda

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

services/dynamic-sidecar/tests/unit/test_api_rest_workflow_service_metrics.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ def backend_url() -> AnyHttpUrl:
9090
@pytest.fixture
9191
async 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
111111
async 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

0 commit comments

Comments
 (0)