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

Method test_module

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

Source from the content-addressed store, hash-verified

1091
1092 @pytest.mark.slow_test
1093 def test_module(self):
1094 # ensure it doesn't exist
1095 self.assertNotIn("foo", self.loader)
1096 self.assertNotIn("foo.test", self.loader)
1097 self.update_module("foo.py", mod_template.format(val=1))
1098 self.loader.clear()
1099 self.assertIn("foo.test", self.loader)
1100 self.assertEqual(self.loader["foo.test"](), 1)
1101
1102 @pytest.mark.slow_test
1103 def test_package(self):

Callers

nothing calls this directly

Calls 3

update_moduleMethod · 0.95
formatMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected