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

Function test_invalid_version

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

Test that invalid schema versions raise appropriate errors.

()

Source from the content-addressed store, hash-verified

69
70
71def test_invalid_version() -> None:
72 """Test that invalid schema versions raise appropriate errors."""
73 from alpm.alpm_types import ALPMError
74
75 with pytest.raises(ALPMError):
76 # not a valid SchemaVersion
77 SourceInfoSchema("invalid")
78
79 with pytest.raises(SourceInfoError):
80 # valid SchemaVersion but unsupported
81 SourceInfoSchema("999")
82
83
84def test_str_repr() -> None:

Callers

nothing calls this directly

Calls 1

SourceInfoSchemaClass · 0.50

Tested by

no test coverage detected