2424from tests .test_utils .assert_metrics_dict import assert_metrics_dict
2525from tests .test_utils .models_for_test import LinearModel
2626
27+
2728freezegun .configure (extend_ignore_list = ["transformers" ]) # type: ignore
2829
2930
@@ -249,8 +250,7 @@ def mock_validate_or_test( # type: ignore
249250 fold_loss_dict_into_metrics (self .mock_metrics , self .mock_loss_dict , logging_mode )
250251 if logging_mode == LoggingMode .VALIDATION :
251252 return self .mock_loss , self .mock_metrics
252- else :
253- return self .mock_loss , self .mock_metrics_test
253+ return self .mock_loss , self .mock_metrics_test
254254
255255
256256def test_subclass_raises_warning_if_override_val_step () -> None :
@@ -261,7 +261,7 @@ def test_subclass_raises_warning_if_override_val_step() -> None:
261261 with pytest .warns (RuntimeWarning , match = re .escape (msg )):
262262
263263 class _TestSubclass (FlexibleClient ):
264- """A subclass that overrides val_step"""
264+ """A subclass that overrides val_step. """
265265
266266 def val_step (
267267 self , input : TorchInputType , target : TorchTargetType
@@ -278,7 +278,7 @@ def test_subclass_raises_warning_if_override_train_step() -> None:
278278 with pytest .warns (RuntimeWarning , match = re .escape (msg )):
279279
280280 class _TestSubclass (FlexibleClient ):
281- """A subclass that overrides train_step"""
281+ """A subclass that overrides train_step. """
282282
283283 def train_step (
284284 self , input : TorchInputType , target : TorchTargetType
0 commit comments