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

Function test_version_consistency

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

Test that schema versions are consistent across different creation methods.

(valid_srcinfo_content: str)

Source from the content-addressed store, hash-verified

90
91
92def test_version_consistency(valid_srcinfo_content: str) -> None:
93 """Test that schema versions are consistent across different creation methods."""
94 explicit_schema = SourceInfoSchema("1")
95
96 derived_schema = SourceInfoSchema.derive_from_str(valid_srcinfo_content)
97
98 assert explicit_schema == derived_schema
99
100
101def test_equality() -> None:

Callers

nothing calls this directly

Calls 2

SourceInfoSchemaClass · 0.50
derive_from_strMethod · 0.45

Tested by

no test coverage detected