Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/unit/command/test_imp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from dvc.command.imp import CmdImport


def test_import(mocker, dvc_repo):
def test_import(mocker):
cli_args = parse_args(
["import", "repo_url", "src", "--out", "out", "--rev", "version"]
)
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/command/test_imp_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dvc.exceptions import DvcException


def test_import_url(mocker, dvc_repo):
def test_import_url(mocker):
cli_args = parse_args(["import-url", "src", "out", "--file", "file"])
assert cli_args.func == CmdImportUrl

Expand All @@ -17,7 +17,7 @@ def test_import_url(mocker, dvc_repo):
m.assert_called_once_with("src", out="out", fname="file")


def test_failed_import_url(mocker, caplog, dvc_repo):
def test_failed_import_url(mocker, caplog):
cli_args = parse_args(["import-url", "http://somesite.com/file_name"])
assert cli_args.func == CmdImportUrl

Expand Down
8 changes: 4 additions & 4 deletions tests/unit/remote/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@
from tests.utils.httpd import StaticFileServer


def test_no_traverse_compatibility(dvc_repo):
def test_no_traverse_compatibility(dvc):
config = {
"url": "http://example.com/",
"path_info": "file.html",
"no_traverse": False,
}

with pytest.raises(ConfigError):
RemoteHTTP(dvc_repo, config)
RemoteHTTP(dvc, config)


def test_download_fails_on_error_code(dvc_repo):
def test_download_fails_on_error_code(dvc):
with StaticFileServer() as httpd:
url = "http://localhost:{}/".format(httpd.server_port)
config = {"url": url}

remote = RemoteHTTP(dvc_repo, config)
remote = RemoteHTTP(dvc, config)

with pytest.raises(HTTPError):
remote._download(URLInfo(url) / "missing.txt", "missing.txt")