Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev committed Feb 11, 2024
1 parent 75b701c commit 05d7153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine-learning/app/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def test_clear_cache(self, mocker: MockerFixture) -> None:
encoder.clear_cache()

mock_rmtree.assert_called_once_with(encoder.cache_dir)
assert info.call_count == 2
info.assert_called_with(f"Cleared cache directory for model '{encoder.model_name}'.")

def test_clear_cache_warns_if_path_does_not_exist(self, mocker: MockerFixture) -> None:
mock_rmtree = mocker.patch("app.models.base.rmtree", autospec=True)
Expand Down

0 comments on commit 05d7153

Please sign in to comment.