()
| 18 | |
| 19 | |
| 20 | def test_invalid_attr() -> None: |
| 21 | with pytest.raises(ImportFromStringError) as exc_info: |
| 22 | import_from_string("tempfile:attr_does_not_exist") |
| 23 | expected = 'Attribute "attr_does_not_exist" not found in module "tempfile".' |
| 24 | assert expected in str(exc_info.value) |
| 25 | |
| 26 | |
| 27 | def test_internal_import_error() -> None: |
nothing calls this directly
no test coverage detected