Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescalam committed Aug 23, 2024
1 parent 5cdf1d2 commit 7f2cfae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/unit/encoders/test_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ def test_vit_encoder__import_errors_torch(self, mocker):
with pytest.raises(ImportError):
VitEncoder()

def test_vit_encoder__import_errors_torchvision(self, mocker):
mocker.patch.dict("sys.modules", {"torchvision": None})
with pytest.raises(ImportError):
VitEncoder()

@pytest.mark.skipif(
os.environ.get("RUN_HF_TESTS") is None, reason="Set RUN_HF_TESTS=1 to run"
)
Expand Down

0 comments on commit 7f2cfae

Please sign in to comment.