From fafef20ee7908da34cf3aaa828ece44572630e65 Mon Sep 17 00:00:00 2001 From: Jesus Bermudez Velazquez Date: Wed, 9 Aug 2023 10:34:18 +0100 Subject: [PATCH] Update tests --- tests/unit/test_plugin.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/unit/test_plugin.py b/tests/unit/test_plugin.py index efbdb12..d3f1f1b 100644 --- a/tests/unit/test_plugin.py +++ b/tests/unit/test_plugin.py @@ -315,22 +315,7 @@ def test_local_csp_setup_adapter_log_with_config_settings( setup_adapter(config=local_config) log.addHandler.assert_called_with(file_handler) - log.setLevel.assert_called_with('WARN') mock_logging_file_handler.assert_called_with( '/var/log/csp_billing_adapter.log' ) mock_logging_get_logger.assert_called_with('CSPBillingAdapter') - - -@patch('csp_billing_adapter_local.plugin.logging.Logger') -@patch('csp_billing_adapter_local.plugin.logging.getLogger') -@patch('csp_billing_adapter_local.plugin.logging.FileHandler') -def test_local_csp_setup_adapter_log_without_config_settings( - mock_logging_file_handler, mock_logging_get_logger, - mock_logger -): - log = logging.getLogger('csp_test') - - setup_adapter(config=Config({})) - - log.setLevel.assert_called_with('INFO')