diff --git a/dvc/exceptions.py b/dvc/exceptions.py index 530f2fe6b..c40677170 100644 --- a/dvc/exceptions.py +++ b/dvc/exceptions.py @@ -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) ) ) diff --git a/dvc/remote/config.py b/dvc/remote/config.py index 26c023ee1..d97117ac3 100644 --- a/dvc/remote/config.py +++ b/dvc/remote/config.py @@ -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"]) diff --git a/tests/func/test_get.py b/tests/func/test_get.py index 9c69d66ae..efc3c1351 100644 --- a/tests/func/test_get.py +++ b/tests/func/test_get.py @@ -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 diff --git a/tests/func/test_remote.py b/tests/func/test_remote.py index c6d1cffe9..4a4ce4b30 100644 --- a/tests/func/test_remote.py +++ b/tests/func/test_remote.py @@ -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")