MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_parse_invalid_json

Method test_parse_invalid_json

ci/tests/test_package.py:161–166  ·  view source on GitHub ↗

Test parsing invalid JSON

(self)

Source from the content-addressed store, hash-verified

159 assert package_index.packages[0].name == "test"
160
161 def test_parse_invalid_json(self) -> None:
162 """Test parsing invalid JSON"""
163 parser = PackageIndexParser()
164
165 with pytest.raises(PackageParsingError):
166 parser.parse_package_index("invalid json")
167
168
169class TestUtilityFunctions:

Callers

nothing calls this directly

Calls 2

parse_package_indexMethod · 0.95
PackageIndexParserClass · 0.90

Tested by

no test coverage detected