(name, *args, **kwargs)
| 159 | _import = builtins.__import__ |
| 160 | |
| 161 | def import_hook(name, *args, **kwargs): |
| 162 | if name == 'cryptography': |
| 163 | raise ImportError |
| 164 | return _import(name, *args, **kwargs) |
| 165 | |
| 166 | builtins.__import__ = import_hook |
| 167 | with pytest.raises(ImproperlyConfigured): |
nothing calls this directly
no outgoing calls
no test coverage detected