From 946ceb288de205b818a6eddedef67036e72e0c6c Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Sat, 7 May 2022 00:45:09 +0530 Subject: [PATCH] Update tests/func/test_data_cloud.py Co-authored-by: David de la Iglesia Castro --- tests/func/test_data_cloud.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tests/func/test_data_cloud.py b/tests/func/test_data_cloud.py index 629db91f1..dd1a4f905 100644 --- a/tests/func/test_data_cloud.py +++ b/tests/func/test_data_cloud.py @@ -574,15 +574,10 @@ def test_target_remote(tmp_dir, dvc, make_remote): def test_push_pull_glob_no_match( - tmp_dir, dvc, erepo_dir, run_copy, local_remote + tmp_dir, dvc, ): - tmp_dir.gen("foo", "foo") - erepo_dir.add_remote(config=local_remote.config) + with pytest.raises(GlobDoesNotMatchError): + dvc.push(targets="b*", glob=True) - with erepo_dir.chdir(): - with pytest.raises(GlobDoesNotMatchError): - dvc.push(targets="b*", glob=True) - - with pytest.raises(GlobDoesNotMatchError): - dvc.pull(targets="b*", glob=True) - assert not os.path.exists(erepo_dir.dvc.stage_cache.cache_dir) + with pytest.raises(GlobDoesNotMatchError): + dvc.pull(targets="b*", glob=True)