mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 15:28:28 +01:00
tests: match recent commits and
other misc. language improvements
This commit is contained in:
+1
-1
@@ -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)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -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"])
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user