← Về thư mục
tests/test_telemetry_consent.py
- store · function · L38-L39 — def store(tmp_path)
- test_a_fresh_install_has_not_consented · function · L47-L49 — def test_a_fresh_install_has_not_consented(store)
- test_granting_records_consent_and_mints_an_identity · function · L52-L57 — def test_granting_records_consent_and_mints_an_identity(store)
- test_granting_twice_does_not_mint_a_second_identity · function · L60-L65 — def test_granting_twice_does_not_mint_a_second_identity(store)
- test_the_identity_is_not_derived_from_anything_about_the_machine · function · L68-L72 — def test_the_identity_is_not_derived_from_anything_about_the_machine(store, tmp_path)
- test_revoking_destroys_the_identity_along_with_the_permission · function · L80-L86 — def test_revoking_destroys_the_identity_along_with_the_permission(store)
- test_re_consenting_after_a_revoke_is_a_new_identity · function · L89-L96 — def test_re_consenting_after_a_revoke_is_a_new_identity(store)
- test_revoking_leaves_no_tombstone · function · L99-L110 — def test_revoking_leaves_no_tombstone(store)
- test_revoking_when_nothing_was_granted_is_not_an_error · function · L113-L115 — def test_revoking_when_nothing_was_granted_is_not_an_error(store)
- test_an_environment_variable_cannot_turn_telemetry_on · function · L123-L127 — def test_an_environment_variable_cannot_turn_telemetry_on(store, monkeypatch)
- test_an_environment_variable_can_turn_telemetry_off · function · L130-L137 — def test_an_environment_variable_can_turn_telemetry_off(store, monkeypatch)
- test_the_veto_does_not_delete_the_recorded_consent · function · L140-L148 — def test_the_veto_does_not_delete_the_recorded_consent(store, monkeypatch)
- test_granting_under_a_veto_does_not_record_consent · function · L151-L158 — def test_granting_under_a_veto_does_not_record_consent(store, monkeypatch)
- test_an_unreadable_record_is_read_as_no_consent · function · L180-L185 — def test_an_unreadable_record_is_read_as_no_consent(store, raw)
- test_the_record_is_the_only_place_the_identity_is_written · function · L188-L195 — def test_the_record_is_the_only_place_the_identity_is_written(store)
- test_the_consent_module_cannot_reach_the_network · function · L203-L219 — def test_the_consent_module_cannot_reach_the_network()
- test_a_corrupt_schema_version_reads_as_no_consent · function · L228-L244 — def test_a_corrupt_schema_version_reads_as_no_consent(store, bad)
- test_an_unspecified_schema_version_is_old_not_malformed · function · L254-L259 — def test_an_unspecified_schema_version_is_old_not_malformed(store, record)
- test_a_boolean_is_not_an_integer_schema_version · function · L262-L269 — def test_a_boolean_is_not_an_integer_schema_version(store)
- test_granting_over_a_corrupt_record_mints_a_fresh_identity · function · L272-L279 — def test_granting_over_a_corrupt_record_mints_a_fresh_identity(store)