def test_assess_status(self):
     with patch.object(horizon_utils, 'assess_status_func') as asf:
         callee = MagicMock()
         asf.return_value = callee
         horizon_utils.assess_status('test-config')
         asf.assert_called_once_with('test-config')
         callee.assert_called_once_with()
Esempio n. 2
0
 def test_assess_status(self):
     with patch.object(horizon_utils, 'assess_status_func') as asf:
         callee = MagicMock()
         asf.return_value = callee
         horizon_utils.assess_status('test-config')
         asf.assert_called_once_with('test-config')
         callee.assert_called_once_with()
Esempio n. 3
0
 def test_assess_status(self):
     with patch.object(horizon_utils, 'assess_status_func') as asf:
         callee = MagicMock()
         asf.return_value = callee
         horizon_utils.assess_status('test-config')
         asf.assert_called_once_with('test-config')
         callee.assert_called_once_with()
         self.os_application_version_set.assert_called_with(
             horizon_utils.VERSION_PACKAGE)
 def test_assess_status(self):
     with patch.object(horizon_utils, 'assess_status_func') as asf:
         callee = MagicMock()
         asf.return_value = callee
         horizon_utils.assess_status('test-config')
         asf.assert_called_once_with('test-config')
         callee.assert_called_once_with()
         self.os_application_version_set.assert_called_with(
             horizon_utils.VERSION_PACKAGE
         )
def main():
    try:
        hooks.execute(sys.argv)
    except UnregisteredHookError as e:
        log('Unknown hook {} - skipping.'.format(e))
    assess_status(CONFIGS)
def main():
    try:
        hooks.execute(sys.argv)
    except UnregisteredHookError as e:
        log('Unknown hook {} - skipping.'.format(e))
    assess_status(CONFIGS)