Test parsing invalid SRCINFO from file raises error.
(content: str)
| 103 | ], |
| 104 | ) |
| 105 | def test_from_file_invalid(content: str) -> None: |
| 106 | """Test parsing invalid SRCINFO from file raises error.""" |
| 107 | with tempfile.NamedTemporaryFile(mode="w", suffix=".SRCINFO", delete=True) as tmp: |
| 108 | tmp.write(content) |
| 109 | tmp.flush() |
| 110 | |
| 111 | with pytest.raises(SourceInfoError): |
| 112 | source_info_from_file(tmp.name) |
| 113 | |
| 114 | |
| 115 | def test_from_file_nonexistent() -> None: |
nothing calls this directly
no test coverage detected