Skip to content

Commit 64f3f18

Browse files
committed
imrpoving tests
1 parent 44f3cb1 commit 64f3f18

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

tests/test_common_functions/test_logging_config.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,20 @@ class TestConfigLog(unittest.TestCase):
1010
@patch('dsg_lib.common_functions.logging_config.logger')
1111
def test_config_log_with_valid_params(self, mock_logger):
1212
config_log(
13-
logging_directory='logs',
14-
log_name='app.log',
15-
logging_level='DEBUG',
16-
log_rotation='1 MB',
13+
logging_directory = 'log',
14+
log_name= 'log',
15+
logging_level= 'INFO',
16+
log_rotation= '2 MB',
17+
log_retention= '30 days',
18+
log_backtrace = False,
19+
log_format= None,
20+
log_serializer = False,
21+
log_diagnose = False,
22+
app_name= None,
23+
append_app_name = False,
24+
enqueue = True,
25+
intercept_standard_logging = True,
26+
file_sink = True,
1727
)
1828
mock_logger.configure.assert_called_once()
1929
mock_logger.add.assert_called_once()

0 commit comments

Comments
 (0)