Skip to content

Commit 16405ac

Browse files
pmeierdatumbox
andauthored
make tests that involve GDrive more robust (#4454)
* make tests that involve GDrive more robust * fix expected IDs Co-authored-by: Vasilis Vryniotis <[email protected]>
1 parent f0422e7 commit 16405ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/test_datasets_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def test_check_integrity(self):
7676
assert not utils.check_integrity(nonexisting_fpath)
7777

7878
def test_get_google_drive_file_id(self):
79-
url = "https://drive.google.com/file/d/1hbzc_P1FuxMkcabkgn9ZKinBwW683j45/view"
80-
expected = "1hbzc_P1FuxMkcabkgn9ZKinBwW683j45"
79+
url = "https://drive.google.com/file/d/1GO-BHUYRuvzr1Gtp2_fqXRsr9TIeYbhV/view"
80+
expected = "1GO-BHUYRuvzr1Gtp2_fqXRsr9TIeYbhV"
8181

8282
actual = utils._get_google_drive_file_id(url)
8383
assert actual == expected

test/test_internet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def test_download_url_dont_exist(self, tmpdir):
3636
utils.download_url(url, tmpdir)
3737

3838
def test_download_url_dispatch_download_from_google_drive(self, mocker, tmpdir):
39-
url = "https://drive.google.com/file/d/1hbzc_P1FuxMkcabkgn9ZKinBwW683j45/view"
39+
url = "https://drive.google.com/file/d/1GO-BHUYRuvzr1Gtp2_fqXRsr9TIeYbhV/view"
4040

41-
id = "1hbzc_P1FuxMkcabkgn9ZKinBwW683j45"
41+
id = "1GO-BHUYRuvzr1Gtp2_fqXRsr9TIeYbhV"
4242
filename = "filename"
4343
md5 = "md5"
4444

0 commit comments

Comments
 (0)