Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# =========
FROM alpine:3.23 AS base
FROM alpine:3.24 AS base

ENV PATH="/app/.venv/bin:$PATH" \
UV_COMPILE_BYTECODE=1 \
Expand Down
19 changes: 11 additions & 8 deletions tests/test_cliparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
--pr-id PR_ID the id of the pull request
--parent-id PARENT_ID
the id of the parent comment, in case of a reply
-v [VERBOSE], --verbose [VERBOSE]
-v, --verbose [VERBOSE]
Verbose exception logging
--text TEXT the text of the comment
"""
Expand Down Expand Up @@ -146,7 +146,7 @@
--git-hash GIT_HASH the git hash which should be deployed
--preview-id PREVIEW_ID
The user-defined preview ID
-v [VERBOSE], --verbose [VERBOSE]
-v, --verbose [VERBOSE]
Verbose exception logging
"""

Expand Down Expand Up @@ -188,7 +188,7 @@
--pr-id PR_ID the id of the pull request
--parent-id PARENT_ID
the id of the parent comment, in case of a reply
-v [VERBOSE], --verbose [VERBOSE]
-v, --verbose [VERBOSE]
Verbose exception logging
"""

Expand Down Expand Up @@ -260,7 +260,7 @@
The user-defined preview ID
--expect-preview-exists [EXPECT_PREVIEW_EXISTS]
Fail if preview does not exist
-v [VERBOSE], --verbose [VERBOSE]
-v, --verbose [VERBOSE]
Verbose exception logging
"""

Expand Down Expand Up @@ -303,7 +303,7 @@
--branch BRANCH The branch for which the preview was created for
--expect-preview-exists [EXPECT_PREVIEW_EXISTS]
Fail if preview does not exist
-v [VERBOSE], --verbose [VERBOSE]
-v, --verbose [VERBOSE]
Verbose exception logging
"""

Expand Down Expand Up @@ -383,7 +383,7 @@
JSON array pr labels (Gitlab, Github supported)
--merge-parameters MERGE_PARAMETERS
JSON object pr parameters (only Gitlab supported)
-v [VERBOSE], --verbose [VERBOSE]
-v, --verbose [VERBOSE]
Verbose exception logging
"""

Expand Down Expand Up @@ -435,7 +435,7 @@
--git-provider-url GIT_PROVIDER_URL
Git provider base API URL (e.g.
https://bitbucket.example.tld)
-v [VERBOSE], --verbose [VERBOSE]
-v, --verbose [VERBOSE]
Verbose exception logging
--root-organisation ROOT_ORGANISATION
Root config repository organisation
Expand Down Expand Up @@ -493,7 +493,10 @@ def assert_type(self, o: object, t: type):

def assert_equal_ignoring_whitespace_and_newlines(self, expected, actual):
def normalize_string(s):
return " ".join(s.split())
s = " ".join(s.split())
# Python 3.13/3.14 argparse help output change:
# "-v, --verbose [VERBOSE]" -> "-v [VERBOSE], --verbose [VERBOSE]"
return s.replace("-v, --verbose [VERBOSE]", "-v [VERBOSE], --verbose [VERBOSE]")

self.assertEqual(normalize_string(expected), normalize_string(actual))

Expand Down