Skip to content

Commit

Permalink
Test whether the warning is issued
Browse files Browse the repository at this point in the history
  • Loading branch information
bittremieux committed Feb 21, 2024
1 parent be89749 commit a950ee6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit_tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def test_save_and_load_weights_deprecated(tmp_path, mgf_small, tiny_config):
assert runner.model.cosine_schedule_period_iters == 5
# Fine-tuning.
with ModelRunner(config=config, model_filename=str(ckpt)) as runner:
runner.train([mgf_small], [mgf_small])
with pytest.warns(DeprecationWarning):
runner.train([mgf_small], [mgf_small])


def test_calculate_precision(tmp_path, mgf_small, tiny_config):
Expand Down

0 comments on commit a950ee6

Please sign in to comment.