MCPcopy Create free account
hub / github.com/archlinux/alpm / test_from_str_invalid

Function test_from_str_invalid

python-alpm/tests/srcinfo/test_source_info.py:59–62  ·  view source on GitHub ↗

Test parsing invalid SRCINFO from string raises error.

(content: str)

Source from the content-addressed store, hash-verified

57 ],
58)
59def test_from_str_invalid(content: str) -> None:
60 """Test parsing invalid SRCINFO from string raises error."""
61 with pytest.raises(SourceInfoError):
62 source_info_from_str(content)
63
64
65@pytest.mark.parametrize("schema", [None, SourceInfoSchema("1")])

Callers

nothing calls this directly

Calls 1

source_info_from_strFunction · 0.85

Tested by

no test coverage detected