File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
tests/test_common_functions Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,20 @@ class TestConfigLog(unittest.TestCase):
10
10
@patch ('dsg_lib.common_functions.logging_config.logger' )
11
11
def test_config_log_with_valid_params (self , mock_logger ):
12
12
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 ,
17
27
)
18
28
mock_logger .configure .assert_called_once ()
19
29
mock_logger .add .assert_called_once ()
You can’t perform that action at this time.
0 commit comments