tests: match recent commits and

other misc. language improvements
This commit is contained in:
Jorge Orpinel
2020-01-23 00:35:15 -06:00
parent ec0c39a28e
commit d06bd6abd8
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class OutputNotFoundError(DvcException):
self.output = output
self.repo = repo
super().__init__(
"unable to find DVC-file with output '{path}'".format(
"Unable to find DVC-file with output '{path}'".format(
path=relpath(self.output)
)
)
+1 -1
View File
@@ -33,7 +33,7 @@ class RemoteConfig(object):
if settings is None:
raise ConfigError(
"unable to find remote section '{}'".format(name)
"Unable to find remote section '{}'".format(name)
)
parsed = urlparse(settings["url"])
+2 -2
View File
@@ -190,7 +190,7 @@ def test_get_url_not_existing(tmp_dir, erepo_dir, caplog):
main(["get", fspath(erepo_dir), "not-existing-file", "--show-url"])
== 1
)
assert "failed to show url" in caplog.text
assert "Failed to show URL" in caplog.text
def test_get_url_git_only_repo(tmp_dir, scm, caplog):
@@ -198,4 +198,4 @@ def test_get_url_git_only_repo(tmp_dir, scm, caplog):
with caplog.at_level(logging.ERROR):
assert main(["get", fspath(tmp_dir), "foo", "--show-url"]) == 1
assert "failed to show url" in caplog.text
assert "Failed to show URL" in caplog.text
+1 -1
View File
@@ -255,5 +255,5 @@ def test_raise_on_too_many_open_files(tmp_dir, dvc, tmp_path_factory, mocker):
def test_modify_missing_remote(dvc):
remote_config = RemoteConfig(dvc.config)
with pytest.raises(ConfigError, match=r"unable to find remote section"):
with pytest.raises(ConfigError, match=r"Unable to find remote section"):
remote_config.modify("myremote", "gdrive_client_id", "xxx")