Skip to content

Commit

Permalink
Add: Add tests for --github-pre-release flag for `pontos-release cr…
Browse files Browse the repository at this point in the history
…eate`

Ensure the correct behavior of parsing the new flag.
  • Loading branch information
bjoernricks committed Oct 5, 2023
1 parent db7204a commit ae3adf2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/release/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def test_default(self):
self.assertEqual(args.git_tag_prefix, "v")
self.assertEqual(args.space, "greenbone")
self.assertFalse(args.local)
self.assertFalse(args.github_pre_release)

def test_git_remote_name(self):
_, _, args = parse_args(
Expand Down Expand Up @@ -248,6 +249,13 @@ def test_update_project(self):

self.assertFalse(args.update_project)

def test_github_pre_release(self):
_, _, args = parse_args(
["create", "--release-type", "patch", "--github-pre-release"]
)

self.assertTrue(args.github_pre_release)


class SignParseArgsTestCase(unittest.TestCase):
def test_sign_func(self):
Expand Down

0 comments on commit ae3adf2

Please sign in to comment.