Test parsing SRCINFO from string with explicit schema.
(
full_version: FullVersion, valid_srcinfo_content: str
)
| 27 | |
| 28 | |
| 29 | def test_from_str_with_schema( |
| 30 | full_version: FullVersion, valid_srcinfo_content: str |
| 31 | ) -> None: |
| 32 | """Test parsing SRCINFO from string with explicit schema.""" |
| 33 | schema = SourceInfoSchema("1") |
| 34 | result = source_info_from_str(valid_srcinfo_content, schema) |
| 35 | assert type(result) is SourceInfoV1 |
| 36 | assert result.base.version == full_version |
| 37 | |
| 38 | |
| 39 | def test_from_str_with_none_schema( |
nothing calls this directly
no test coverage detected