Skip to content

Commit

Permalink
chore: add pytest-jira (#597)
Browse files Browse the repository at this point in the history
This allows us to link a test to a JIRA ticket.
e.g.
@pytest.mark.jira("AAP-16038")
  • Loading branch information
mkanoor authored Oct 11, 2023
1 parent 5dd1f55 commit bd24bbb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pytest-timeout
pytest-xdist
pytest-cov
pytest-check
pytest-jira
dynaconf==3.1.11
freezegun
oauthlib>=3.2.0
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/test_non_alpha_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
DEFAULT_TIMEOUT = 15


@pytest.mark.jira("AAP-16038")
@pytest.mark.e2e
@pytest.mark.asyncio
async def test_non_alpha_numeric_keys():
Expand Down
3 changes: 3 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2245,6 +2245,7 @@ async def test_78_complete_retract_fact():
]


@pytest.mark.jira("AAP-9829")
@pytest.mark.parametrize("err_msg,err", WORKFLOW_TEMPLATE_ERRORS)
@pytest.mark.asyncio
async def test_79_workflow_job_template_exception(err_msg, err):
Expand Down Expand Up @@ -2291,6 +2292,7 @@ async def test_79_workflow_job_template_exception(err_msg, err):
assert set(action.keys()).issuperset(required_keys)


@pytest.mark.jira("AAP-9829")
@pytest.mark.asyncio
async def test_79_workflow_job_template():
ruleset_queues, event_log = load_rulebook(
Expand Down Expand Up @@ -2379,6 +2381,7 @@ async def test_81_match_single_rule():
await validate_events(event_log, **checks)


@pytest.mark.jira("AAP-16038")
@pytest.mark.asyncio
async def test_82_non_alpha_keys():
ruleset_queues, event_log = load_rulebook("examples/82_non_alpha_keys.yml")
Expand Down

0 comments on commit bd24bbb

Please sign in to comment.