Skip to content

Commit

Permalink
feat(jira): resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrooot committed Nov 8, 2024
1 parent c973636 commit 08e9d49
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/lib/outputs/jira/jira_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,10 @@ def test_send_findings_response_error(
findings=[finding], project_key="TEST", issue_type="Bug"
)

def test_get_color_from_status(self):
@pytest.mark.parametrize(
"status, expected_color",
[("FAIL", "#FF0000"), ("PASS", "#008000"), ("MUTED", "#FFA500")],
)
def test_get_color_from_status(self, status, expected_color):
"""Test that get_color_from_status returns the correct color for a status."""
assert self.jira_integration.get_color_from_status("FAIL") == "#FF0000"
assert self.jira_integration.get_color_from_status("PASS") == "#008000"
assert self.jira_integration.get_color_from_status("MUTED") == "#FFA500"
assert self.jira_integration.get_color_from_status(status) == expected_color

0 comments on commit 08e9d49

Please sign in to comment.