Skip to content

Commit

Permalink
apply format check suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Vela-zz committed Feb 19, 2024
1 parent daeb706 commit 64f7e95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/metrics/model_manager/test_model_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def test_model_manager_initiation(mock_model_manager):


def test_model_manager_fetch_model(mock_model_manager):
with patch.dict(
'langcheck.metrics.model_manager._model_management.LOADER_MAP',
{'load_auto_model_for_text_classification': MagicMock()}):
with \
patch.dict(
'langcheck.metrics.model_manager._model_management.LOADER_MAP',
{'load_auto_model_for_text_classification': MagicMock()}):
model = mock_model_manager.fetch_model(language='zh', metric='toxicity')
assert model is not None

0 comments on commit 64f7e95

Please sign in to comment.