Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
pleary committed Dec 31, 2024
1 parent fa3062b commit 9edc3d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ def inatInferrer(request, mocker):
os.path.realpath(os.path.dirname(__file__) + "/fixtures/synonyms.csv")
}
mocker.patch("tensorflow.keras.models.load_model", return_value=MagicMock())
mocker.patch("tensorflow.keras.Model", return_value=MagicMock())
return InatInferrer(config)
2 changes: 2 additions & 0 deletions tests/test_vision_inferrer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
class TestVisionInferrer:
def test_initialization(self, mocker):
mocker.patch("tensorflow.keras.models.load_model", return_value=MagicMock())
mocker.patch("tensorflow.keras.Model", return_value=MagicMock())
model_path = "model_path"
inferrer = VisionInferrer(model_path)
assert inferrer.model_path == model_path
Expand All @@ -16,6 +17,7 @@ def test_initialization(self, mocker):

def test_process_image(self, mocker):
mocker.patch("tensorflow.keras.models.load_model", return_value=MagicMock())
mocker.patch("tensorflow.keras.Model", return_value=MagicMock())
model_path = "model_path"
inferrer = VisionInferrer(model_path)
theimage = "theimage"
Expand Down

0 comments on commit 9edc3d4

Please sign in to comment.