()
| 11 | |
| 12 | |
| 13 | def test_invalid_module() -> None: |
| 14 | with pytest.raises(ImportFromStringError) as exc_info: |
| 15 | import_from_string("module_does_not_exist:myattr") |
| 16 | expected = 'Could not import module "module_does_not_exist".' |
| 17 | assert expected in str(exc_info.value) |
| 18 | |
| 19 | |
| 20 | def test_invalid_attr() -> None: |
nothing calls this directly
no test coverage detected