thunderbird_accounts.telemetry.tests
Classes
|
Tests that enforce privacy contracts: PII must never reach PostHog. |
|
|
|
submit_event must hand PostHog a real datetime; the SDK silently drops string timestamps. |
- class thunderbird_accounts.telemetry.tests.GetClientTestCase(methodName='runTest')[source]
Bases:
TestCase- test_returns_singleton(mock_posthog_class)
Multiple calls return the same instance without re-initializing.
- class thunderbird_accounts.telemetry.tests.CapturePrivacyTestCase(methodName='runTest')[source]
Bases:
TestCaseTests that enforce privacy contracts: PII must never reach PostHog.
- test_noop_when_not_configured()
Must not raise when PostHog is unconfigured.
- test_empty_user_id_is_dropped(mock_posthog_class)
Events with no keycloak_user_id must not be submitted.