()
| 35 | |
| 36 | |
| 37 | def test_require_module_import_error(): |
| 38 | with pytest.raises(ImportError) as exc_info: |
| 39 | require_module("nonexistent_module") |
| 40 | |
| 41 | exception_msg = str(exc_info.value) |
| 42 | assert "Required package 'nonexistent_module' is not installed." in exception_msg |
| 43 | |
| 44 | |
| 45 | def test_require_module_with_mitigation_import_error(): |
nothing calls this directly
no test coverage detected