mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-08 07:18:27 +01:00
Merge pull request #2958 from MaxRis/gdrive-tests
Standardize gdrive tests with others remotes
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
import pytest
|
||||
|
||||
from dvc.remote.gdrive import RemoteGDrive
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def gdrive(repo):
|
||||
ret = RemoteGDrive(None, {"url": "gdrive://root/data"})
|
||||
return ret
|
||||
@@ -3,7 +3,7 @@ from dvc.remote.gdrive import RemoteGDrive
|
||||
|
||||
|
||||
@mock.patch("dvc.remote.gdrive.RemoteGDrive.init_drive")
|
||||
def test_init_drive(repo):
|
||||
def test_init(repo):
|
||||
url = "gdrive://root/data"
|
||||
gdrive = RemoteGDrive(repo, {"url": url})
|
||||
assert str(gdrive.path_info) == url
|
||||
Reference in New Issue
Block a user