Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sungchul2 committed Jun 12, 2024
1 parent 227e0be commit 157595b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/unit/engine/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ def test_exporting(self, fxt_engine, mocker) -> None:
checkpoint = "path/to/checkpoint.ckpt"
fxt_engine.checkpoint = checkpoint
fxt_engine.export()
mock_load_from_checkpoint.assert_called_once_with(checkpoint_path=checkpoint, map_location="cpu")
mock_load_from_checkpoint.assert_called_once_with(
checkpoint_path=checkpoint,
map_location="cpu",
**fxt_engine.model.hparams,
)
mock_export.assert_called_once_with(
output_dir=Path(fxt_engine.work_dir),
base_name="exported_model",
Expand Down

0 comments on commit 157595b

Please sign in to comment.