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

Function test_derive_from_str

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

Test deriving SourceInfoSchema from SRCINFO string content.

(valid_srcinfo_content: str)

Source from the content-addressed store, hash-verified

21
22
23def test_derive_from_str(valid_srcinfo_content: str) -> None:
24 """Test deriving SourceInfoSchema from SRCINFO string content."""
25 schema = SourceInfoSchema.derive_from_str(valid_srcinfo_content)
26 assert str(schema.version) == "1.0.0"
27
28
29def test_derive_from_str_invalid() -> None:

Callers

nothing calls this directly

Calls 1

derive_from_strMethod · 0.45

Tested by

no test coverage detected