From 5da72fc8fffa2c6b791a542be129361b195cf886 Mon Sep 17 00:00:00 2001 From: Nick Sorros Date: Wed, 6 Apr 2022 11:04:46 +0300 Subject: [PATCH] Patch get_remote_odb instead --- tests/func/test_data_cloud.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/func/test_data_cloud.py b/tests/func/test_data_cloud.py index 5665a7228..2bf53c7d3 100644 --- a/tests/func/test_data_cloud.py +++ b/tests/func/test_data_cloud.py @@ -575,15 +575,16 @@ def test_target_remote(tmp_dir, dvc, make_remote): def test_remote_missing_data_dir(tmp_dir, scm, dvc, make_remote): - make_remote("default", default=True) tmp_dir.dvc_gen({"dir": {"subfile": "file2 content"}}, commit="add dir") - dvc.push() + with dvc.config.edit() as conf: + conf["remote"]["s3"] = {"url": "s3://bucket/name"} + conf["core"] = {"remote": "s3"} remove("dir") remove(dvc.odb.local.cache_dir) with patch( - "dvc.fs.base.FileSystem._check_requires", + "dvc.data_cloud.DataCloud.get_remote_odb", side_effect=RemoteMissingDepsError("remote missing"), ): with pytest.raises(RemoteMissingDepsError):