From 3449a13c28c976ccef9d34a919dd65162ec39982 Mon Sep 17 00:00:00 2001 From: Tomas Sebestik Date: Fri, 6 Sep 2024 13:03:36 +0200 Subject: [PATCH] fix(tests): fix failed test after adding check for empty JIRA_PROJECT --- tests/test_sync_to_jira.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_sync_to_jira.py b/tests/test_sync_to_jira.py index 8ff60d3..37232b6 100644 --- a/tests/test_sync_to_jira.py +++ b/tests/test_sync_to_jira.py @@ -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()