Skip to content

Commit 55c95ea

Browse files
committed
🐛 Rename fixture parameters for consistency in test files
1 parent 68d257c commit 55c95ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

services/notifications/tests/unit/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515

1616
@pytest.fixture
17-
def service_env(
17+
def app_environment(
1818
monkeypatch: pytest.MonkeyPatch,
1919
mock_environment: EnvVarsDict,
2020
rabbit_service: RabbitSettings,
21-
postgres_db: sa.engine.Engine,
21+
postgres_db: sa.engine.Engine, # waiting for postgres service to start
2222
postgres_env_vars_dict: EnvVarsDict,
2323
) -> EnvVarsDict:
2424
return setenvs_from_dict(
@@ -36,7 +36,7 @@ def service_env(
3636

3737

3838
@pytest.fixture
39-
async def initialized_app(service_env: EnvVarsDict) -> AsyncIterator[FastAPI]:
39+
async def initialized_app(app_environment: EnvVarsDict) -> AsyncIterator[FastAPI]:
4040
app: FastAPI = create_app()
4141

4242
async with LifespanManager(app, startup_timeout=30, shutdown_timeout=30):

services/notifications/tests/unit/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
@pytest.fixture
24-
def cli_runner(service_env: EnvVarsDict) -> CliRunner:
24+
def cli_runner(app_environment: EnvVarsDict) -> CliRunner:
2525
return CliRunner()
2626

2727

0 commit comments

Comments
 (0)