Skip to content

Commit

Permalink
Clean up fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherry committed Jul 30, 2020
1 parent 010c583 commit 5d0d4a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions evalml/tests/utils_tests/test_logger.py
Expand Up @@ -66,7 +66,7 @@ def test_logger_critical(caplog):


@patch('evalml.utils.logger.RotatingFileHandler')
def test_get_logger_default(mock_RotatingFileHandler, logger_env_cleanup):
def test_get_logger_default(mock_RotatingFileHandler):
assert os.environ.get('EVALML_LOG_FILE') is None
logger = get_logger(TEST_LOGGER_NAME)
assert len(logger.handlers) == 2
Expand All @@ -76,7 +76,7 @@ def test_get_logger_default(mock_RotatingFileHandler, logger_env_cleanup):


@patch('evalml.utils.logger.RotatingFileHandler')
def test_get_logger_path_valid(mock_RotatingFileHandler, monkeypatch, logger_env_cleanup):
def test_get_logger_path_valid(mock_RotatingFileHandler, monkeypatch):
assert os.environ.get('EVALML_LOG_FILE') is None

with tempfile.TemporaryDirectory() as temp_dir:
Expand All @@ -92,7 +92,7 @@ def test_get_logger_path_valid(mock_RotatingFileHandler, monkeypatch, logger_env


@patch('evalml.utils.logger.RotatingFileHandler')
def test_get_logger_path_invalid(mock_RotatingFileHandler, monkeypatch, logger_env_cleanup):
def test_get_logger_path_invalid(mock_RotatingFileHandler, monkeypatch):
assert os.environ.get('EVALML_LOG_FILE') is None

with tempfile.TemporaryDirectory() as temp_dir:
Expand Down

0 comments on commit 5d0d4a8

Please sign in to comment.