def setUp(self): with patch('salt.utils.schedule.clean_proc_dir', MagicMock(return_value=None)): functions = {'test.ping': test_ping, 'test.true': test_true, 'status.time': status_time, 'cmd.run': cmd_run} self.schedule = Schedule(copy.deepcopy(self.default_config), functions, returners={}) self.addCleanup(delattr, self, 'schedule')
def setUp(self): with patch('salt.utils.schedule.clean_proc_dir', MagicMock(return_value=None)): functions = { 'test.ping': test_ping, 'test.true': test_true, 'status.time': status_time, 'cmd.run': cmd_run } self.schedule = Schedule(copy.deepcopy(DEFAULT_CONFIG), functions, returners={})
def setUp(self): with patch('salt.utils.schedule.clean_proc_dir', MagicMock(return_value=None)): self.schedule = Schedule(copy.deepcopy(DEFAULT_CONFIG), {}, returners={})
def setUp(self): with patch('salt.utils.schedule.clean_proc_dir', MagicMock(return_value=None)): self.schedule = Schedule({}, {}, returners={})
def setUp(self): with patch('salt.utils.schedule.clean_proc_dir', MagicMock(return_value=None)): self.schedule = Schedule(copy.deepcopy(self.default_config), {}, returners={}) self.addCleanup(delattr, self, 'schedule')