mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
tests(bench): remove allow_anonymous_login config use from dvc<3.59.3 (#10762)
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
import shutil
|
||||
|
||||
from packaging import version
|
||||
|
||||
|
||||
def test_sharing(bench_dvc, tmp_dir, dvc, make_dataset, remote, dvc_rev):
|
||||
is_gs = dvc.config["remote"]["upstream"]["url"].startswith("gs://")
|
||||
if is_gs and version.Version(dvc_rev) < version.Version("3.59.3"):
|
||||
# support for allow_anonymous_login in gs was introduced in dvc==3.59.3
|
||||
with dvc.config.edit() as d:
|
||||
d["remote"]["upstream"].pop("allow_anonymous_login", None)
|
||||
|
||||
def test_sharing(bench_dvc, tmp_dir, dvc, make_dataset, remote):
|
||||
dataset = make_dataset(cache=True, dvcfile=True)
|
||||
|
||||
bench_dvc("push")
|
||||
|
||||
Reference in New Issue
Block a user