Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ea02a18

Browse files
authoredJun 5, 2025··
tests(bench): remove allow_anonymous_login config use from dvc<3.59.3 (#10762)
1 parent e04f149 commit ea02a18

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎dvc/testing/benchmarks/cli/stories/use_cases/test_sharing.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
import shutil
22

3+
from packaging import version
4+
5+
6+
def test_sharing(bench_dvc, tmp_dir, dvc, make_dataset, remote, dvc_rev):
7+
is_gs = dvc.config["remote"]["upstream"]["url"].startswith("gs://")
8+
if is_gs and version.Version(dvc_rev) < version.Version("3.59.3"):
9+
# support for allow_anonymous_login in gs was introduced in dvc==3.59.3
10+
with dvc.config.edit() as d:
11+
d["remote"]["upstream"].pop("allow_anonymous_login", None)
312

4-
def test_sharing(bench_dvc, tmp_dir, dvc, make_dataset, remote):
513
dataset = make_dataset(cache=True, dvcfile=True)
614

715
bench_dvc("push")

0 commit comments

Comments
 (0)
Please sign in to comment.