Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davebulaval committed Sep 16, 2024
1 parent b9b5079 commit 72d21cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file not shown.
6 changes: 3 additions & 3 deletions tests/test_weights_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_givenAS3Path_whenHandleWeights_upload_thenReturnProperWeights(self, tor

handle_weights_upload(path_to_model_to_upload=s3_path)

torch_mock.has_calls([call.load()])
torch_mock.assert_has_calls([call.load()])

@patch("deepparse.weights_tools.CloudPath")
@patch("deepparse.weights_tools.torch")
Expand All @@ -34,7 +34,7 @@ def test_givenAStringS3Path_whenHandleWeights_upload_thenReturnProperWeights(sel

handle_weights_upload(path_to_model_to_upload=s3_path)

torch_mock.has_calls([call.load()])
torch_mock.assert_has_calls([call.load()])
cloud_path_mock.assert_called()

@patch("deepparse.weights_tools.CloudPath")
Expand All @@ -47,7 +47,7 @@ def test_givenAStringPath_whenHandleWeights_upload_thenReturnProperWeights(self,

handle_weights_upload(path_to_model_to_upload=s3_path)

torch_mock.has_calls([call.load()])
torch_mock.assert_has_calls([call.load()])

cloud_path_mock.assert_not_called()

Expand Down

0 comments on commit 72d21cd

Please sign in to comment.