"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "440a3823a66330650b6bfac8378babdb88b4d036"
Unverified Commit 16405ac2 authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

make tests that involve GDrive more robust (#4454)



* make tests that involve GDrive more robust

* fix expected IDs
Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
parent f0422e7d
...@@ -76,8 +76,8 @@ class TestDatasetsUtils: ...@@ -76,8 +76,8 @@ class TestDatasetsUtils:
assert not utils.check_integrity(nonexisting_fpath) assert not utils.check_integrity(nonexisting_fpath)
def test_get_google_drive_file_id(self): def test_get_google_drive_file_id(self):
url = "https://drive.google.com/file/d/1hbzc_P1FuxMkcabkgn9ZKinBwW683j45/view" url = "https://drive.google.com/file/d/1GO-BHUYRuvzr1Gtp2_fqXRsr9TIeYbhV/view"
expected = "1hbzc_P1FuxMkcabkgn9ZKinBwW683j45" expected = "1GO-BHUYRuvzr1Gtp2_fqXRsr9TIeYbhV"
actual = utils._get_google_drive_file_id(url) actual = utils._get_google_drive_file_id(url)
assert actual == expected assert actual == expected
......
...@@ -36,9 +36,9 @@ class TestDatasetUtils: ...@@ -36,9 +36,9 @@ class TestDatasetUtils:
utils.download_url(url, tmpdir) utils.download_url(url, tmpdir)
def test_download_url_dispatch_download_from_google_drive(self, mocker, tmpdir): def test_download_url_dispatch_download_from_google_drive(self, mocker, tmpdir):
url = "https://drive.google.com/file/d/1hbzc_P1FuxMkcabkgn9ZKinBwW683j45/view" url = "https://drive.google.com/file/d/1GO-BHUYRuvzr1Gtp2_fqXRsr9TIeYbhV/view"
id = "1hbzc_P1FuxMkcabkgn9ZKinBwW683j45" id = "1GO-BHUYRuvzr1Gtp2_fqXRsr9TIeYbhV"
filename = "filename" filename = "filename"
md5 = "md5" md5 = "md5"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment