MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_assert_valid_raises_on_errors

Function test_assert_valid_raises_on_errors

tests/test_validate.py:128–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 assert any("file_type" in e for e in errors)
127
128def test_assert_valid_raises_on_errors():
129 with pytest.raises(ValueError, match="error"):
130 assert_valid({"nodes": [], "edges": [], "oops": True, **{"nodes": "bad"}})
131
132def test_assert_valid_passes_silently():
133 assert_valid(VALID) # should not raise

Callers

nothing calls this directly

Calls 1

assert_validFunction · 0.90

Tested by

no test coverage detected