Skip to content

Commit

Permalink
Add testcases for the newly added functionality
Browse files Browse the repository at this point in the history
Signed-off-by: Akashdeep Dhar <[email protected]>
  • Loading branch information
gridhead committed Nov 21, 2023
1 parent 8b2a11a commit a3bc656
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/test_tkts.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,33 @@
],
id="Transferring issue tickets with SHUT status along with states but without comments, without privacy and without labels", # noqa: E501
),
pytest.param(
f"--srce {envr['TEST_SRCE']} --dest {envr['TEST_DEST']} --pkey {envr['TEST_PKEY']} --gkey {envr['TEST_GKEY']} --fusr {envr['TEST_FUSR']} --tusr {envr['TEST_TUSR']} tkts --status OPEN --secret", # noqa: E501
0,
[
"[ WARN ] Extracting all open issue tickets without labels, without states, with privacy and without comments off the given selection", # noqa: E501
"Found 2 issue ticket(s) across 1 page(s) in ",
"[ BUSY ] Migrating issue ticket without labels #1 'This is the title of the first test issue' by 'Akashdeep Dhar (ID t0xic0der)'...", # noqa: E501
"Migrated to ",
"[ BUSY ] Migrating issue ticket without labels #3 'This is the title of the third test issue' by 'Akashdeep Dhar (ID t0xic0der)'...", # noqa: E501
"Migrated to ",
],
id="Transferring issue tickets with OPEN status along with privacy but without states, without comments and without labels", # noqa: E501
),
pytest.param(
f"--srce {envr['TEST_SRCE']} --dest {envr['TEST_DEST']} --pkey {envr['TEST_PKEY']} --gkey {envr['TEST_GKEY']} --fusr {envr['TEST_FUSR']} --tusr {envr['TEST_TUSR']} tkts --status SHUT --secret", # noqa: E501
0,
[
"[ WARN ] Extracting all closed issue tickets without labels, without states, with privacy and without comments off the given selection", # noqa: E501
"Found 2 issue ticket(s) across 1 page(s) in ",
"[ BUSY ] Migrating issue ticket without labels #2 'This is the title of the second test issue' by 'Akashdeep Dhar (ID t0xic0der)'...", # noqa: E501
"Migrated to ",
"[ BUSY ] Migrating issue ticket without labels #4 'This is the title of the fourth test issue' by 'Akashdeep Dhar (ID t0xic0der)'...", # noqa: E501
"Migrated to ",
],
id="Transferring issue tickets with SHUT status along with privacy but without states, without comments and without labels", # noqa: E501
),
pytest.param(
f"--srce {envr['TEST_SRCE']} --dest {envr['TEST_DEST']} --pkey {envr['TEST_PKEY']} --gkey {envr['TEST_GKEY']} --fusr {envr['TEST_FUSR']} --tusr {envr['TEST_TUSR']} tkts --status OPEN --select 1 --commit --comments", # noqa: E501
0,
Expand Down

0 comments on commit a3bc656

Please sign in to comment.