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

Function test_derive_from_str_invalid

python-alpm/tests/srcinfo/test_schema.py:29–32  ·  view source on GitHub ↗

Test deriving SourceInfoSchema from invalid SRCINFO string raises error.

()

Source from the content-addressed store, hash-verified

27
28
29def test_derive_from_str_invalid() -> None:
30 """Test deriving SourceInfoSchema from invalid SRCINFO string raises error."""
31 with pytest.raises(SourceInfoError):
32 SourceInfoSchema.derive_from_str("not a valid srcinfo")
33
34
35def test_derive_from_file(valid_srcinfo_content: str) -> None:

Callers

nothing calls this directly

Calls 1

derive_from_strMethod · 0.45

Tested by

no test coverage detected