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

Function test_basic_functionality_repositories

tests/test_data_client.py:42–53  ·  view source on GitHub ↗

Test the base result.

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

Source from the content-addressed store, hash-verified

40
41@pytest.mark.parametrize("category_test_data", category_test_data_parametrized())
42async def test_basic_functionality_repositories(
43 hacs: HacsBase,
44 category_test_data: CategoryTestData,
45 snapshots: SnapshotFixture,
46):
47 """Test the base result."""
48 result = await hacs.data_client.get_repositories(category_test_data["category"])
49
50 snapshots.assert_match(
51 safe_json_dumps(recursive_remove_key(result, ("last_fetched",))),
52 f"data_client/base/repositories/{category_test_data['category']}.json",
53 )
54
55
56@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

safe_json_dumpsFunction · 0.90
recursive_remove_keyFunction · 0.90
get_repositoriesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…