Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yolaj-nhs committed Jul 26, 2023
1 parent 96669b5 commit 3a4e35b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_safekeras2.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,11 @@ def test_checkpoints_are_equal():

same, msg = safekeras.check_checkpoint_equality("hello", "fit2.tf")
assert same is False
assert "error_reloading_model_v1" in msg
assert "Error re-loading model from" in msg

same, msg = safekeras.check_checkpoint_equality("fit2.tf", "hello")
assert same is False
assert "error_reloading_model_v2" in msg
assert "Error re-loading model from" in msg

for name in ("fit.tf", "fit2.tf", "refit.tf"):
cleanup_file(name)
Expand Down

0 comments on commit 3a4e35b

Please sign in to comment.