def test_get_check_every(self):
     with mock.patch(
         'paasta_tools.monitoring_tools.__get_monitoring_config_value',
     ) as get_monitoring_config_value_patch:
         monitoring_tools.get_check_every(self.overrides, self.service, self.soa_dir)
         get_monitoring_config_value_patch.assert_called_once_with('check_every', self.overrides, self.service,
                                                                   self.soa_dir)
Beispiel #2
0
 def test_get_check_every(self):
     with mock.patch(
         'paasta_tools.monitoring_tools.__get_monitoring_config_value',
     ) as get_monitoring_config_value_patch:
         monitoring_tools.get_check_every(self.overrides, self.service, self.soa_dir)
         get_monitoring_config_value_patch.assert_called_once_with('check_every', self.overrides, self.service,
                                                                   self.soa_dir)
 def test_get_check_every(self):
     with mock.patch(
         "paasta_tools.monitoring_tools.__get_monitoring_config_value", autospec=True
     ) as get_monitoring_config_value_patch:
         monitoring_tools.get_check_every(self.overrides, self.service, self.soa_dir)
         get_monitoring_config_value_patch.assert_called_once_with(
             "check_every", self.overrides, self.service, self.soa_dir
         )