Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sovrasov committed Apr 17, 2024
1 parent e1bd05a commit 8ed5146
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/unit/core/model/test_visual_prompting.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ class TestOVVisualPromptingModel:
def set_ov_visual_prompting_model(self, mocker, tmpdir):
def ov_visual_prompting_model(for_create_model: bool = False) -> OVVisualPromptingModel:
if for_create_model:
mocker.patch("openvino.model_api.adapters.create_core")
mocker.patch("openvino.model_api.adapters.get_user_config")
mocker.patch("openvino.model_api.adapters.OpenvinoAdapter")
mocker.patch("openvino.model_api.models.Model.create_model")
mocker.patch("model_api.adapters.create_core")
mocker.patch("model_api.adapters.get_user_config")
mocker.patch("model_api.adapters.OpenvinoAdapter")
mocker.patch("model_api.models.Model.create_model")
else:
mocker.patch.object(
OVVisualPromptingModel,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/core/utils/test_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_tile_transform_consistency(mocker):
dm_image = Image.from_numpy(np_image)

mock_model = MagicMock(spec=Model)
mocker.patch("openvino.model_api.tilers.tiler.Tiler.__init__", return_value=None)
mocker.patch("model_api.tilers.tiler.Tiler.__init__", return_value=None)
mocker.patch.multiple(Tiler, __abstractmethods__=set())

tiler = Tiler(model=mock_model)
Expand Down

0 comments on commit 8ed5146

Please sign in to comment.