Fix tests related to clap changes

This commit is contained in:
2023-05-06 19:13:53 +02:00
parent b20bba529a
commit 1edc61d6e6
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ def test_repos_find_invalid_format():
)
assert cmd.returncode != 0
assert len(cmd.stdout) == 0
assert "isn't a valid value" in cmd.stderr
assert "invalid value 'invalidformat'" in cmd.stderr
def test_repos_find_non_git_repos():

View File

@@ -43,7 +43,7 @@ def test_repos_find_remote_invalid_provider(use_config):
assert cmd.returncode != 0
assert len(cmd.stdout) == 0
if not use_config:
assert re.match(".*isn't a valid value for.*provider", cmd.stderr)
assert re.match(".*invalid value 'thisproviderdoesnotexist' for.*provider", cmd.stderr)
@pytest.mark.parametrize("provider", PROVIDERS)
@@ -66,7 +66,7 @@ def test_repos_find_remote_invalid_format(provider):
)
assert cmd.returncode != 0
assert len(cmd.stdout) == 0
assert "isn't a valid value" in cmd.stderr
assert "invalid value 'invalidformat'" in cmd.stderr
@pytest.mark.parametrize("provider", PROVIDERS)