This commit is contained in:
q0w 2022-02-03 14:57:21 +03:00
parent 332e960ecf
commit 7f6a9cad22
1 changed files with 7 additions and 0 deletions

View File

@ -140,3 +140,10 @@ class TestBasicLoading(ConfigurationMixin):
global_config_file = get_configuration_files()[kinds.GLOBAL][0]
result = script.pip("config", "debug")
assert f"{global_config_file}, exists:" in result.stdout
def test_editor_does_not_exist(self, script: PipTestEnvironment) -> None:
"""Ensure that FileNotFoundError sets filename correctly"""
result = script.pip(
"config", "edit", "--editor", "notrealeditor", expect_error=True
)
assert "notrealeditor" in result.stderr