Skip to content

Commit 5508c13

Browse files
committed
Fix tests
1 parent 4854614 commit 5508c13

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

backend/tests/apps/github/api/internal/queries/repository_contributor_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def mock_contributor_data(self):
1717
{
1818
"avatar_url": "https://example.com/avatar1.jpg",
1919
"contributions_count": 50,
20+
"id": "1",
2021
"login": "alice",
2122
"name": "Alice Smith",
2223
"project_key": "www-project-test",
@@ -25,6 +26,7 @@ def mock_contributor_data(self):
2526
{
2627
"avatar_url": "https://example.com/avatar2.jpg",
2728
"contributions_count": 30,
29+
"id": "2",
2830
"login": "bob",
2931
"name": "Bob Jones",
3032
"project_key": None,
@@ -124,6 +126,7 @@ def test_top_contributors_node_creation(self, mock_get_top_contributors):
124126
{
125127
"avatar_url": "https://example.com/avatar.jpg",
126128
"contributions_count": 25,
129+
"id": "3",
127130
"login": "testuser",
128131
"name": "Test User",
129132
"project_key": "www-project-example",

backend/tests/apps/github/models/repository_contributor_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def test_has_full_name_filter_valid_names(self):
100100
"user__avatar_url": MOCK_AVATAR_URL,
101101
"user__login": "testuser",
102102
"user__name": name,
103+
"id": "test-id",
103104
}
104105
]
105106

0 commit comments

Comments
 (0)