Skip to content

Commit

Permalink
fix(tests): fix failed test after adding check for empty JIRA_PROJECT
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassebestik committed Sep 6, 2024
1 parent 4482b4b commit 3449a13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_sync_to_jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def test_handle_issue_opened_event(mock_environment, sync_to_jira_main, monkeypa
}
mock_environment.write_text(json.dumps(event_data))
monkeypatch.setenv('GITHUB_EVENT_NAME', 'issues')
monkeypatch.setenv('JIRA_PROJECT', 'TEST_PROJECT')

with patch('sync_jira_actions.sync_to_jira.handle_issue_opened') as mock_handle_issue_opened:
sync_to_jira_main()
Expand Down

0 comments on commit 3449a13

Please sign in to comment.