Skip to content

Commit 549f000

Browse files
try to fix the failing test
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent e8cafef commit 549f000

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cla-backend/cla/tests/unit/test_github_models.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66
from unittest.mock import MagicMock, Mock, patch
77

88
from cla.models.github_models import (UserCommitSummary, get_author_summary,
9-
get_co_author_commits,
9+
get_co_author_commits, github_user_cache,
1010
get_pull_request_commit_authors)
1111

1212

1313
class TestGetPullRequestCommitAuthors(TestCase):
14+
def setUp(self):
15+
# Clear the GitHub user cache before each test to avoid cross-test pollution
16+
with github_user_cache.lock:
17+
github_user_cache.data.clear()
1418
# @patch("cla.utils.get_repository_service")
1519
# def test_get_pull_request_commit_with_co_author(self, mock_github_instance):
1620
# # Mock data

0 commit comments

Comments
 (0)