Skip to content

Commit 2134327

Browse files
committed
Adress pylint
1 parent a29b33a commit 2134327

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

services/web/server/tests/unit/isolated/conftest.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def mock_env_deployer_pipeline(monkeypatch: pytest.MonkeyPatch) -> EnvVarsDict:
9494

9595
@pytest.fixture
9696
def mock_env_devel_environment(
97-
mock_env_devel_environment: EnvVarsDict, monkeypatch: pytest.MonkeyPatch
97+
mock_env_devel_environment: EnvVarsDict, # pylint: disable=redefined-outer-name
98+
monkeypatch: pytest.MonkeyPatch,
9899
) -> EnvVarsDict:
99100
# Overrides to ensure dev-features are enabled testings
100101
return mock_env_devel_environment | setenvs_from_dict(
@@ -173,10 +174,10 @@ def mock_env_dockerfile_build(monkeypatch: pytest.MonkeyPatch) -> EnvVarsDict:
173174
@pytest.fixture
174175
def mock_webserver_service_environment(
175176
monkeypatch: pytest.MonkeyPatch,
176-
mock_env_makefile: EnvVarsDict,
177-
mock_env_devel_environment: EnvVarsDict,
178-
mock_env_dockerfile_build: EnvVarsDict,
179-
mock_env_deployer_pipeline: EnvVarsDict,
177+
mock_env_makefile: EnvVarsDict, # pylint: disable=redefined-outer-name
178+
mock_env_devel_environment: EnvVarsDict, # pylint: disable=redefined-outer-name
179+
mock_env_dockerfile_build: EnvVarsDict, # pylint: disable=redefined-outer-name
180+
mock_env_deployer_pipeline: EnvVarsDict, # pylint: disable=redefined-outer-name
180181
) -> EnvVarsDict:
181182
"""
182183
Mocks environment produce in the docker compose config with a .env (.env-devel)

services/web/server/tests/unit/isolated/test_tracing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ def test_middleware_restrictions_opentelemetry_is_second_middleware(
3939
app.middlewares[0].__middleware_name__
4040
== "servicelib.aiohttp.monitoring.monitor_simcore_service_webserver"
4141
)
42-
assert app.middlewares[1] == aiohttp_opentelemetry_middleware
42+
assert app.middlewares[1] is aiohttp_opentelemetry_middleware

0 commit comments

Comments
 (0)