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

Function test_basic_functionality_data

tests/test_data_client.py:27–38  ·  view source on GitHub ↗

Test the base result.

(
    hacs: HacsBase,
    category_test_data: CategoryTestData,
    snapshots: SnapshotFixture,
)

Source from the content-addressed store, hash-verified

25
26@pytest.mark.parametrize("category_test_data", category_test_data_parametrized())
27async def test_basic_functionality_data(
28 hacs: HacsBase,
29 category_test_data: CategoryTestData,
30 snapshots: SnapshotFixture,
31):
32 """Test the base result."""
33 result = await hacs.data_client.get_data(category_test_data["category"], validate=True)
34
35 snapshots.assert_match(
36 safe_json_dumps(recursive_remove_key(result, ("last_fetched",))),
37 f"data_client/base/data/{category_test_data['category']}.json",
38 )
39
40
41@pytest.mark.parametrize("category_test_data", category_test_data_parametrized())

Callers

nothing calls this directly

Calls 3

safe_json_dumpsFunction · 0.90
recursive_remove_keyFunction · 0.90
get_dataMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…