fix(telemetry): make python identity env={} bypass os.environ and unset CI in tests

This commit is contained in:
Andrey Avtomonov 2026-05-22 17:59:11 +02:00
parent cdcadca1e1
commit 14431c01ee
4 changed files with 10 additions and 4 deletions

View file

@ -106,6 +106,9 @@ def test_app_lifespan_emits_daemon_lifecycle_debug_events(
monkeypatch.setenv("HOME", str(tmp_path))
monkeypatch.setenv("KTX_TELEMETRY_DEBUG", "1")
monkeypatch.setenv("KTX_DAEMON_VERSION", "0.4.1")
monkeypatch.delenv("CI", raising=False)
monkeypatch.delenv("KTX_TELEMETRY_DISABLED", raising=False)
monkeypatch.delenv("DO_NOT_TRACK", raising=False)
with TestClient(
create_app(telemetry_started_at=100.0, clock=lambda: 100.125)