MCPcopy
hub / github.com/hacs/integration / test_diagnostics

Function test_diagnostics

tests/test_diagnostics.py:19–30  ·  view source on GitHub ↗

Test the base result.

(hacs: HacsBase, snapshots: SnapshotFixture)

Source from the content-addressed store, hash-verified

17
18
19async def test_diagnostics(hacs: HacsBase, snapshots: SnapshotFixture):
20 """Test the base result."""
21 diagnostics = await async_get_config_entry_diagnostics(
22 hacs.hass,
23 hacs.configuration.config_entry,
24 )
25
26 assert TOKEN not in str(diagnostics)
27 snapshots.assert_match(
28 safe_json_dumps(recursive_remove_key(
29 diagnostics, REMOVE_KEYS)), "diagnostics/base.json"
30 )
31
32
33async def test_diagnostics_with_exception(

Callers

nothing calls this directly

Calls 3

safe_json_dumpsFunction · 0.90
recursive_remove_keyFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…