Skip to content

Commit

Permalink
skip stage cache push/pull test for http (#10462)
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry authored Jun 15, 2024
1 parent 676645b commit a555c3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dvc/testing/remote_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import pytest

from dvc.stage.cache import RunCacheNotSupported
from dvc.utils.fs import remove
from dvc_data.hashfile.tree import Tree

Expand Down Expand Up @@ -97,8 +96,10 @@ def test(self, tmp_dir, dvc, remote):
status_dir = dvc.cloud.status(dir_hashes)
_check_status(status_dir, ok=dir_hashes)

@pytest.mark.xfail(raises=RunCacheNotSupported, strict=False)
def test_stage_cache_push_pull(self, tmp_dir, dvc, remote):
if remote.scheme in ("http", "https"):
pytest.skip("HTTP remote does not support stage cache")

tmp_dir.gen("foo", "foo")
stage = dvc.stage.add(
deps=["foo"], outs=["bar"], name="copy-foo-bar", cmd="cp foo bar"
Expand Down

0 comments on commit a555c3d

Please sign in to comment.