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

Method test_reload

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

Source from the content-addressed store, hash-verified

693
694 @pytest.mark.slow_test
695 def test_reload(self):
696 # ensure it doesn't exist
697 self.assertNotIn(self.module_key, self.loader)
698
699 # make sure it updates correctly
700 for x in range(1, 3):
701 self.update_module()
702 self.loader.clear()
703 self.assertEqual(self.loader[self.module_key](), self.count)
704
705 self.rm_module()
706 # make sure that even if we remove the module, its still loaded until a clear
707 self.assertEqual(self.loader[self.module_key](), self.count)
708 self.loader.clear()
709 self.assertNotIn(self.module_key, self.loader)
710
711 def test_wrong_bytecode(self):
712 """

Callers

nothing calls this directly

Calls 3

update_moduleMethod · 0.95
rm_moduleMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected