Test deriving SourceInfoSchema from empty file raises error.
()
| 107 | |
| 108 | |
| 109 | def test_derive_from_empty_file() -> None: |
| 110 | """Test deriving SourceInfoSchema from empty file raises error.""" |
| 111 | with tempfile.NamedTemporaryFile(mode="w", suffix=".SRCINFO", delete=True) as tmp: |
| 112 | tmp.write("") |
| 113 | tmp.flush() |
| 114 | |
| 115 | with pytest.raises(SourceInfoError): |
| 116 | SourceInfoSchema.derive_from_file(tmp.name) |
nothing calls this directly
no test coverage detected