We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8cafef commit 549f000Copy full SHA for 549f000
cla-backend/cla/tests/unit/test_github_models.py
@@ -6,11 +6,15 @@
6
from unittest.mock import MagicMock, Mock, patch
7
8
from cla.models.github_models import (UserCommitSummary, get_author_summary,
9
- get_co_author_commits,
+ get_co_author_commits, github_user_cache,
10
get_pull_request_commit_authors)
11
12
13
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()
18
# @patch("cla.utils.get_repository_service")
19
# def test_get_pull_request_commit_with_co_author(self, mock_github_instance):
20
# # Mock data
0 commit comments