mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-09 23:10:24 +01:00
test: remote: http: clear test file name
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user