MCPcopy
hub / github.com/msoedov/agentic_security / test_registry_accessibility

Function test_registry_accessibility

tests/system/test_registry.py:9–26  ·  view source on GitHub ↗
(dataset)

Source from the content-addressed store, hash-verified

7@pytest.mark.slow
8@pytest.mark.parametrize("dataset", REGISTRY)
9def test_registry_accessibility(dataset):
10 source = dataset.get("source", "")
11 if "hugging" not in source.lower():
12 return pytest.skip("skipped dataset")
13 if not dataset.get("is_active"):
14 return pytest.skip("skipped dataset")
15
16 dataset_name = dataset.get("dataset_name")
17 if not dataset_name:
18 pytest.fail(f"No dataset_name found in {dataset}")
19
20 # Load only metadata (no data download)
21 try:
22 ds = load_dataset(dataset_name, split=None)
23 # Check if metadata is accessible without loading full data
24 assert ds is not None, f"Failed to load metadata for {dataset_name}"
25 except Exception as e:
26 pytest.fail(f"Error loading metadata for {dataset_name}: {str(e)}")

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected