Skip to content

Commit

Permalink
tests: match recent commits and
Browse files Browse the repository at this point in the history
other misc. language improvements
  • Loading branch information
jorgeorpinel committed Jan 23, 2020
1 parent ec0c39a commit d06bd6a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dvc/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, output, repo=None):
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)
)
)
Expand Down
2 changes: 1 addition & 1 deletion dvc/remote/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_settings(self, name):

if settings is None:
raise ConfigError(
"unable to find remote section '{}'".format(name)
"Unable to find remote section '{}'".format(name)
)

parsed = urlparse(settings["url"])
Expand Down
4 changes: 2 additions & 2 deletions tests/func/test_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ 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):
tmp_dir.scm_gen({"foo": "foo"}, commit="initial")

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
2 changes: 1 addition & 1 deletion tests/func/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit d06bd6a

Please sign in to comment.