output: remove a couple more "(s)" left

Per https://github.com/iterative/dvc/pull/2281#issuecomment-513053199
This commit is contained in:
Jorge Orpinel
2019-07-20 13:44:36 -06:00
parent df28309403
commit c7ef6592fe
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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")
)
+1 -1
View File
@@ -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=(
+2 -2
View File
@@ -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):