Skip to content

Commit 7b928d0

Browse files
author
Jacob Mages-Haskins
committed
AIML-77 Fix test setup
1 parent 007f2c2 commit 7b928d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_git_handler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,6 @@ def test_get_pr_changed_files_count_exception(self, mock_debug_log, mock_get_gh_
648648
@patch('src.git_handler.run_command')
649649
@patch('src.git_handler.get_gh_env')
650650
@patch('src.git_handler.debug_log')
651-
@patch.dict('os.environ', {'GITHUB_REPOSITORY': 'mock/repo-for-testing'})
652651
def test_check_issues_enabled_success(self, mock_debug_log, mock_get_gh_env, mock_run_command):
653652
"""Test check_issues_enabled when Issues are enabled"""
654653
from src.config import get_config, reset_config
@@ -659,7 +658,9 @@ def test_check_issues_enabled_success(self, mock_debug_log, mock_get_gh_env, moc
659658

660659
# Reset config and initialize with testing=True
661660
reset_config()
662-
_ = get_config(testing=True)
661+
config = get_config(testing=True)
662+
# Explicitly override the repository setting for this test
663+
config.GITHUB_REPOSITORY = 'mock/repo-for-testing'
663664

664665
# Execute
665666
result = git_handler.check_issues_enabled()

0 commit comments

Comments
 (0)