Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Dec 9, 2024
1 parent f21f43a commit e68afac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions services/web/server/tests/unit/isolated/test_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@
def mock_webserver_service_environment(
monkeypatch: pytest.MonkeyPatch, mock_webserver_service_environment: EnvVarsDict
) -> EnvVarsDict:

return mock_webserver_service_environment | setenvs_from_dict(
envs = mock_webserver_service_environment | setenvs_from_dict(
monkeypatch,
{
"WEBSERVER_TRACING": "{}",
"TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT": "http://opentelemetry-collector",
"TRACING_OPENTELEMETRY_COLLECTOR_PORT": "4318",
},
)

envs.pop("WEBSERVER_TRACING")

return envs


def test_middleware_restrictions_opentelemetry_is_second_middleware(
mock_webserver_service_environment: EnvVarsDict,
Expand Down

0 comments on commit e68afac

Please sign in to comment.