(self)
| 32 | assert obj is load_object |
| 33 | |
| 34 | def test_load_object_exceptions(self): |
| 35 | with pytest.raises(ImportError): |
| 36 | load_object("nomodule999.mod.function") |
| 37 | with pytest.raises(NameError): |
| 38 | load_object("scrapy.utils.misc.load_object999") |
| 39 | with pytest.raises(TypeError): |
| 40 | load_object({}) |
| 41 | |
| 42 | def test_walk_modules(self): |
| 43 | mods = walk_modules_iter("tests.test_utils_misc.test_walk_modules") |
nothing calls this directly
no test coverage detected