Skip to content

Commit

Permalink
fix test failing due to caching
Browse files Browse the repository at this point in the history
  • Loading branch information
frances-h committed May 15, 2024
1 parent b552ac6 commit 9025dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/logging/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_get_sdv_logger_csv(mock_get_sdv_logger_config, mock_getlogger,
mock_logger_conf = {
'log_registry': 'local',
'loggers': {
'test_logger': {
'test_logger_csv': {
'level': 'DEBUG',
'format': 'CSV',
'handlers': {
Expand All @@ -86,7 +86,7 @@ def test_get_sdv_logger_csv(mock_get_sdv_logger_config, mock_getlogger,
mock_filehandler.return_value = mock_filehandler_instance

# Run
get_sdv_logger('test_logger')
get_sdv_logger('test_logger_csv')

# Assert
mock_logger_instance.setLevel.assert_called_once_with(logging.DEBUG)
Expand Down

0 comments on commit 9025dd1

Please sign in to comment.