Skip to content

Commit

Permalink
revert moving spy call
Browse files Browse the repository at this point in the history
  • Loading branch information
dberenbaum committed Feb 12, 2024
1 parent 4043b8d commit 8f2f91b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/frameworks/test_huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ def test_huggingface_integration(tmp_dir, model, args, data, mocker, callback):
compute_metrics=compute_metrics,
)
callback = callback()
live = callback.live
trainer.add_callback(callback)
spy = mocker.spy(Live, "end")
trainer.add_callback(callback)
trainer.train()
spy.assert_called_once()

Expand Down

0 comments on commit 8f2f91b

Please sign in to comment.