()
| 4 | |
| 5 | |
| 6 | def test_invalid_format() -> None: |
| 7 | with pytest.raises(ImportFromStringError) as exc_info: |
| 8 | import_from_string("example:") |
| 9 | expected = 'Import string "example:" must be in format "<module>:<attribute>".' |
| 10 | assert expected in str(exc_info.value) |
| 11 | |
| 12 | |
| 13 | def test_invalid_module() -> None: |
nothing calls this directly
no test coverage detected