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

Method test__load__

tests/unit/test_loader.py:675–682  ·  view source on GitHub ↗

If a module specifies __load__ we should only load/expose those modules

(self)

Source from the content-addressed store, hash-verified

673
674 @pytest.mark.slow_test
675 def test__load__(self):
676 """
677 If a module specifies __load__ we should only load/expose those modules
678 """
679 self.update_module()
680
681 # ensure it doesn't exist
682 self.assertNotIn(self.module_key + "2", self.loader)
683
684 @pytest.mark.slow_test
685 def test__load__and_depends(self):

Callers

nothing calls this directly

Calls 1

update_moduleMethod · 0.95

Tested by

no test coverage detected