Skip to content
Snippets Groups Projects
Commit 7f2cfaef authored by James Briggs's avatar James Briggs
Browse files

fix: tests

parent 5cdf1d20
No related branches found
No related tags found
No related merge requests found
......@@ -43,11 +43,6 @@ class TestVitEncoder:
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"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment