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

Function test_from_str_valid

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

Test parsing valid SRCINFO from string.

(full_version: FullVersion, valid_srcinfo_content: str)

Source from the content-addressed store, hash-verified

20
21
22def test_from_str_valid(full_version: FullVersion, valid_srcinfo_content: str) -> None:
23 """Test parsing valid SRCINFO from string."""
24 result = source_info_from_str(valid_srcinfo_content)
25 assert type(result) is SourceInfoV1
26 assert result.base.version == full_version
27
28
29def test_from_str_with_schema(

Callers

nothing calls this directly

Calls 1

source_info_from_strFunction · 0.85

Tested by

no test coverage detected