1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-30 19:12:15 +01:00

behave: Add osc fork test

This commit is contained in:
Andrii Nikitin
2025-04-22 23:27:24 +02:00
committed by Daniel Mach
parent 8ea352270a
commit ddef2a11cc
6 changed files with 36 additions and 8 deletions

View File

@@ -38,13 +38,16 @@ class Login(BaseModel):
def __str__(self):
if self.kwargs == {"name": None}:
return \
"Could not find a default Gitea config entry\n" \
" * either set the default entry by running `git-obs login edit <login> --set-as-default`\n" \
return (
"Could not find a default Gitea config entry\n"
" * either set the default entry by running `git-obs login update <login> --set-as-default`\n"
" * or run the command with `-G/--gitea-login <login>` option"
)
kwargs_str = ", ".join([f"{key}={value}" for key, value in self.kwargs.items()])
return f"Could not find a matching Gitea config entry: {kwargs_str}\n" \
return (
f"Could not find a matching Gitea config entry: {kwargs_str}\n"
" * see `git-obs login list` for valid entries"
)
def __init__(self, **kwargs):
# ignore extra fields