test: remote: http: clear test file name

This commit is contained in:
pawel
2019-11-29 15:30:55 +01:00
committed by Paweł Redzyński
parent c102a781c2
commit f7846a5bed
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ class RemoteHTTP(RemoteBASE):
if response.status_code != 200:
raise HTTPError(response.status_code, response.reason)
with Tqdm(
total=None if no_progress_bar else self._content_length(response),
total=None if no_progress_bar else self._content_length(from_info),
leave=False,
bytes=True,
desc=from_info.url if name is None else name,
+1 -1
View File
@@ -26,4 +26,4 @@ def test_download_fails_on_error_code(dvc_repo):
remote = RemoteHTTP(dvc_repo, config)
with pytest.raises(HTTPError):
remote._download(URLInfo(url) / "file.txt", "file.txt")
remote._download(URLInfo(url) / "missing.txt", "missing.txt")