Test the base result.
(hacs: HacsBase, snapshots: SnapshotFixture)
| 17 | |
| 18 | |
| 19 | async 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 | |
| 33 | async def test_diagnostics_with_exception( |
nothing calls this directly
no test coverage detected
searching dependent graphs…