Skip to content

Commit

Permalink
fix unit test typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge-gyant committed Oct 10, 2022
1 parent 19f7ad0 commit fa37aaf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/alerters/jira_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ def test_jira_arbitrary_field_support():
mock_jira.return_value.priorities.return_value = [mock_priority]
mock_jira.return_value.fields.return_value = mock_fields

# Cause assign_issue or add_watcher to raise, which most likely means that the user did not exist
#mock_jira.return_value.assign_issue.side_effect = Exception()
# Cause add_watcher to raise, which most likely means that the user did not exist
mock_jira.return_value.add_watcher.side_effect = Exception()

with pytest.raises(Exception) as exception:
Expand Down

0 comments on commit fa37aaf

Please sign in to comment.