MCPcopy
hub / github.com/saltstack/salt / test_load

Method test_load

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

Source from the content-addressed store, hash-verified

662
663 @pytest.mark.slow_test
664 def test_load(self):
665 # ensure it doesn't exist
666 self.assertNotIn(self.module_key, self.loader)
667
668 self.update_module()
669 self.assertTrue(
670 isinstance(self.loader[self.module_key], salt.loader.lazy.LoadedFunc)
671 )
672 self.assertTrue(inspect.isfunction(self.loader[self.module_key].func))
673
674 @pytest.mark.slow_test
675 def test__load__(self):

Callers

nothing calls this directly

Calls 1

update_moduleMethod · 0.95

Tested by

no test coverage detected