Test that invalid schema versions raise appropriate errors.
()
| 69 | |
| 70 | |
| 71 | def 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 | |
| 84 | def test_str_repr() -> None: |
nothing calls this directly
no test coverage detected