mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 23:11:44 +01:00
output: remove a couple more "(s)" left
Per https://github.com/iterative/dvc/pull/2281#issuecomment-513053199
This commit is contained in:
@@ -175,7 +175,7 @@ class CmdPipelineList(CmdBase):
|
||||
logger.info(stage)
|
||||
if len(stages) != 0:
|
||||
logger.info("=" * 80)
|
||||
logger.info("{} pipeline(s) total".format(len(pipelines)))
|
||||
logger.info("{} pipelines total".format(len(pipelines)))
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
@@ -399,7 +399,7 @@ class RemoteLOCAL(RemoteBASE):
|
||||
fails = sum(map(func, *plans))
|
||||
|
||||
if fails:
|
||||
msg = "{} file(s) failed to {}"
|
||||
msg = "{} files failed to {}"
|
||||
raise DvcException(
|
||||
msg.format(fails, "download" if download else "upload")
|
||||
)
|
||||
|
||||
@@ -96,7 +96,7 @@ _dvc_destroy=(
|
||||
)
|
||||
|
||||
_dvc_diff=(
|
||||
{-t,--target}"[Source path to a data file or directory.]:Target file(s):"
|
||||
{-t,--target}"[Source path to a data file or directory.]:Target files:"
|
||||
)
|
||||
|
||||
_dvc_fetch=(
|
||||
|
||||
@@ -229,7 +229,7 @@ def test_partial_push_n_pull(dvc_repo, repo_dir, caplog):
|
||||
|
||||
with patch.object(RemoteLOCAL, "_upload", unreliable_upload):
|
||||
assert main(["push"]) == 1
|
||||
assert str(get_last_exc(caplog)) == "1 file(s) failed to upload"
|
||||
assert str(get_last_exc(caplog)) == "1 files failed to upload"
|
||||
|
||||
assert not remote.exists(remote.checksum_to_path_info(foo.checksum))
|
||||
assert remote.exists(remote.checksum_to_path_info(bar.checksum))
|
||||
@@ -240,7 +240,7 @@ def test_partial_push_n_pull(dvc_repo, repo_dir, caplog):
|
||||
|
||||
with patch.object(RemoteLOCAL, "_download", side_effect=Exception):
|
||||
assert main(["pull"]) == 1
|
||||
assert str(get_last_exc(caplog)) == "2 file(s) failed to download"
|
||||
assert str(get_last_exc(caplog)) == "2 files failed to download"
|
||||
|
||||
|
||||
def get_last_exc(caplog):
|
||||
|
||||
Reference in New Issue
Block a user