mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-22 08:38:08 +02:00
fix(telemetry): make python identity env={} bypass os.environ and unset CI in tests
This commit is contained in:
parent
cdcadca1e1
commit
14431c01ee
4 changed files with 10 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue