MCPcopy Index your code
hub / github.com/saltstack/salt / test_package

Method test_package

tests/unit/test_loader.py:1103–1110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1101
1102 @pytest.mark.slow_test
1103 def test_package(self):
1104 # ensure it doesn't exist
1105 self.assertNotIn("foo", self.loader)
1106 self.assertNotIn("foo.test", self.loader)
1107 self.update_module("foo/__init__.py", mod_template.format(val=2))
1108 self.loader.clear()
1109 self.assertIn("foo.test", self.loader)
1110 self.assertEqual(self.loader["foo.test"](), 2)
1111
1112 @pytest.mark.slow_test
1113 def test_module_package_collision(self):

Callers

nothing calls this directly

Calls 3

update_moduleMethod · 0.95
formatMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected