Debian Codegraph @

tests/legacy/responses/repository_fixture.py

raw
1 """Fixtures."""
2 # pylint: disable=missing-docstring
3 import pytest
4
5
6 @pytest.fixture()
7 def repository_response():
8 return {
9 "id": 1296269,
10 "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
11 "name": "Hello-World",
12 "full_name": "octocat/Hello-World",
13 "owner": {
14 "login": "octocat",
15 "id": 1,
16 "node_id": "MDQ6VXNlcjE=",
17 "avatar_url": "https://github.com/images/error/octocat_happy.gif",
18 "gravatar_id": "",
19 "url": "https://api.github.com/users/octocat",
20 "html_url": "https://github.com/octocat",
21 "followers_url": "https://api.github.com/users/octocat/followers",
22 "following_url": "https://api.github.com/users/octocat/following{/other_user}",
23 "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
24 "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
25 "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
26 "organizations_url": "https://api.github.com/users/octocat/orgs",
27 "repos_url": "https://api.github.com/users/octocat/repos",
28 "events_url": "https://api.github.com/users/octocat/events{/privacy}",
29 "received_events_url": "https://api.github.com/users/octocat/received_events",
30 "type": "User",
31 "site_admin": False,
32 },
33 "private": False,
34 "html_url": "https://github.com/octocat/Hello-World",
35 "description": "This your first repo!",
36 "fork": False,
37 "url": "https://api.github.com/repos/octocat/Hello-World",
38 "archive_url": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
39 "assignees_url": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}",
40 "blobs_url": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
41 "branches_url": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}",
42 "collaborators_url": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
43 "comments_url": "http://api.github.com/repos/octocat/Hello-World/comments{/number}",
44 "commits_url": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}",
45 "compare_url": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
46 "contents_url": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}",
47 "contributors_url": "http://api.github.com/repos/octocat/Hello-World/contributors",
48 "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
49 "downloads_url": "http://api.github.com/repos/octocat/Hello-World/downloads",
50 "events_url": "http://api.github.com/repos/octocat/Hello-World/events",
51 "forks_url": "http://api.github.com/repos/octocat/Hello-World/forks",
52 "git_commits_url": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
53 "git_refs_url": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
54 "git_tags_url": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
55 "git_url": "git:github.com/octocat/Hello-World.git",
56 "issue_comment_url": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
57 "issue_events_url": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
58 "issues_url": "http://api.github.com/repos/octocat/Hello-World/issues{/number}",
59 "keys_url": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
60 "labels_url": "http://api.github.com/repos/octocat/Hello-World/labels{/name}",
61 "languages_url": "http://api.github.com/repos/octocat/Hello-World/languages",
62 "merges_url": "http://api.github.com/repos/octocat/Hello-World/merges",
63 "milestones_url": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}",
64 "notifications_url": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
65 "pulls_url": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}",
66 "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}",
67 "ssh_url": "[email protected]:octocat/Hello-World.git",
68 "stargazers_url": "http://api.github.com/repos/octocat/Hello-World/stargazers",
69 "statuses_url": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
70 "subscribers_url": "http://api.github.com/repos/octocat/Hello-World/subscribers",
71 "subscription_url": "http://api.github.com/repos/octocat/Hello-World/subscription",
72 "tags_url": "http://api.github.com/repos/octocat/Hello-World/tags",
73 "teams_url": "http://api.github.com/repos/octocat/Hello-World/teams",
74 "trees_url": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
75 "clone_url": "https://github.com/octocat/Hello-World.git",
76 "mirror_url": "git:git.example.com/octocat/Hello-World",
77 "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks",
78 "svn_url": "https://svn.github.com/octocat/Hello-World",
79 "homepage": "https://github.com",
80 "language": None,
81 "forks_count": 9,
82 "stargazers_count": 80,
83 "watchers_count": 80,
84 "size": 108,
85 "default_branch": "main",
86 "open_issues_count": 0,
87 "is_template": True,
88 "topics": ["octocat", "atom", "electron", "api"],
89 "has_issues": True,
90 "has_projects": True,
91 "has_wiki": True,
92 "has_pages": False,
93 "has_downloads": True,
94 "archived": False,
95 "disabled": False,
96 "visibility": "public",
97 "pushed_at": "2011-01-26T19:06:43Z",
98 "created_at": "2011-01-26T19:01:12Z",
99 "updated_at": "2011-01-26T19:14:43Z",
100 "permissions": {
101 "pull": True,
102 "triage": True,
103 "push": False,
104 "maintain": False,
105 "admin": False,
106 },
107 "allow_rebase_merge": True,
108 "template_repository": None,
109 "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
110 "allow_squash_merge": True,
111 "allow_merge_commit": True,
112 "subscribers_count": 42,
113 "network_count": 0,
114 "license": {
115 "key": "mit",
116 "name": "MIT License",
117 "spdx_id": "MIT",
118 "url": "https://api.github.com/licenses/mit",
119 "node_id": "MDc6TGljZW5zZW1pdA==",
120 },
121 "organization": {
122 "login": "octocat",
123 "id": 1,
124 "node_id": "MDQ6VXNlcjE=",
125 "avatar_url": "https://github.com/images/error/octocat_happy.gif",
126 "gravatar_id": "",
127 "url": "https://api.github.com/users/octocat",
128 "html_url": "https://github.com/octocat",
129 "followers_url": "https://api.github.com/users/octocat/followers",
130 "following_url": "https://api.github.com/users/octocat/following{/other_user}",
131 "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
132 "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
133 "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
134 "organizations_url": "https://api.github.com/users/octocat/orgs",
135 "repos_url": "https://api.github.com/users/octocat/repos",
136 "events_url": "https://api.github.com/users/octocat/events{/privacy}",
137 "received_events_url": "https://api.github.com/users/octocat/received_events",
138 "type": "Organization",
139 "site_admin": False,
140 },
141 "parent": {
142 "id": 1296269,
143 "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
144 "name": "Hello-World",
145 "full_name": "octocat/Hello-World",
146 "owner": {
147 "login": "octocat",
148 "id": 1,
149 "node_id": "MDQ6VXNlcjE=",
150 "avatar_url": "https://github.com/images/error/octocat_happy.gif",
151 "gravatar_id": "",
152 "url": "https://api.github.com/users/octocat",
153 "html_url": "https://github.com/octocat",
154 "followers_url": "https://api.github.com/users/octocat/followers",
155 "following_url": "https://api.github.com/users/octocat/following{/other_user}",
156 "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
157 "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
158 "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
159 "organizations_url": "https://api.github.com/users/octocat/orgs",
160 "repos_url": "https://api.github.com/users/octocat/repos",
161 "events_url": "https://api.github.com/users/octocat/events{/privacy}",
162 "received_events_url": "https://api.github.com/users/octocat/received_events",
163 "type": "User",
164 "site_admin": False,
165 },
166 "private": False,
167 "html_url": "https://github.com/octocat/Hello-World",
168 "description": "This your first repo!",
169 "fork": False,
170 "url": "https://api.github.com/repos/octocat/Hello-World",
171 "archive_url": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
172 "assignees_url": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}",
173 "blobs_url": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
174 "branches_url": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}",
175 "collaborators_url": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
176 "comments_url": "http://api.github.com/repos/octocat/Hello-World/comments{/number}",
177 "commits_url": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}",
178 "compare_url": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
179 "contents_url": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}",
180 "contributors_url": "http://api.github.com/repos/octocat/Hello-World/contributors",
181 "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
182 "downloads_url": "http://api.github.com/repos/octocat/Hello-World/downloads",
183 "events_url": "http://api.github.com/repos/octocat/Hello-World/events",
184 "forks_url": "http://api.github.com/repos/octocat/Hello-World/forks",
185 "git_commits_url": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
186 "git_refs_url": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
187 "git_tags_url": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
188 "git_url": "git:github.com/octocat/Hello-World.git",
189 "issue_comment_url": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
190 "issue_events_url": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
191 "issues_url": "http://api.github.com/repos/octocat/Hello-World/issues{/number}",
192 "keys_url": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
193 "labels_url": "http://api.github.com/repos/octocat/Hello-World/labels{/name}",
194 "languages_url": "http://api.github.com/repos/octocat/Hello-World/languages",
195 "merges_url": "http://api.github.com/repos/octocat/Hello-World/merges",
196 "milestones_url": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}",
197 "notifications_url": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
198 "pulls_url": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}",
199 "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}",
200 "ssh_url": "[email protected]:octocat/Hello-World.git",
201 "stargazers_url": "http://api.github.com/repos/octocat/Hello-World/stargazers",
202 "statuses_url": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
203 "subscribers_url": "http://api.github.com/repos/octocat/Hello-World/subscribers",
204 "subscription_url": "http://api.github.com/repos/octocat/Hello-World/subscription",
205 "tags_url": "http://api.github.com/repos/octocat/Hello-World/tags",
206 "teams_url": "http://api.github.com/repos/octocat/Hello-World/teams",
207 "trees_url": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
208 "clone_url": "https://github.com/octocat/Hello-World.git",
209 "mirror_url": "git:git.example.com/octocat/Hello-World",
210 "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks",
211 "svn_url": "https://svn.github.com/octocat/Hello-World",
212 "homepage": "https://github.com",
213 "language": None,
214 "forks_count": 9,
215 "stargazers_count": 80,
216 "watchers_count": 80,
217 "size": 108,
218 "default_branch": "main",
219 "open_issues_count": 0,
220 "is_template": True,
221 "topics": ["octocat", "atom", "electron", "api"],
222 "has_issues": True,
223 "has_projects": True,
224 "has_wiki": True,
225 "has_pages": False,
226 "has_downloads": True,
227 "archived": False,
228 "disabled": False,
229 "visibility": "public",
230 "pushed_at": "2011-01-26T19:06:43Z",
231 "created_at": "2011-01-26T19:01:12Z",
232 "updated_at": "2011-01-26T19:14:43Z",
233 "permissions": {"admin": False, "push": False, "pull": True},
234 "allow_rebase_merge": True,
235 "template_repository": None,
236 "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
237 "allow_squash_merge": True,
238 "allow_merge_commit": True,
239 "subscribers_count": 42,
240 "network_count": 0,
241 },
242 "source": {
243 "id": 1296269,
244 "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
245 "name": "Hello-World",
246 "full_name": "octocat/Hello-World",
247 "owner": {
248 "login": "octocat",
249 "id": 1,
250 "node_id": "MDQ6VXNlcjE=",
251 "avatar_url": "https://github.com/images/error/octocat_happy.gif",
252 "gravatar_id": "",
253 "url": "https://api.github.com/users/octocat",
254 "html_url": "https://github.com/octocat",
255 "followers_url": "https://api.github.com/users/octocat/followers",
256 "following_url": "https://api.github.com/users/octocat/following{/other_user}",
257 "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
258 "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
259 "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
260 "organizations_url": "https://api.github.com/users/octocat/orgs",
261 "repos_url": "https://api.github.com/users/octocat/repos",
262 "events_url": "https://api.github.com/users/octocat/events{/privacy}",
263 "received_events_url": "https://api.github.com/users/octocat/received_events",
264 "type": "User",
265 "site_admin": False,
266 },
267 "private": False,
268 "html_url": "https://github.com/octocat/Hello-World",
269 "description": "This your first repo!",
270 "fork": False,
271 "url": "https://api.github.com/repos/octocat/Hello-World",
272 "archive_url": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
273 "assignees_url": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}",
274 "blobs_url": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
275 "branches_url": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}",
276 "collaborators_url": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
277 "comments_url": "http://api.github.com/repos/octocat/Hello-World/comments{/number}",
278 "commits_url": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}",
279 "compare_url": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
280 "contents_url": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}",
281 "contributors_url": "http://api.github.com/repos/octocat/Hello-World/contributors",
282 "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
283 "downloads_url": "http://api.github.com/repos/octocat/Hello-World/downloads",
284 "events_url": "http://api.github.com/repos/octocat/Hello-World/events",
285 "forks_url": "http://api.github.com/repos/octocat/Hello-World/forks",
286 "git_commits_url": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
287 "git_refs_url": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
288 "git_tags_url": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
289 "git_url": "git:github.com/octocat/Hello-World.git",
290 "issue_comment_url": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
291 "issue_events_url": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
292 "issues_url": "http://api.github.com/repos/octocat/Hello-World/issues{/number}",
293 "keys_url": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
294 "labels_url": "http://api.github.com/repos/octocat/Hello-World/labels{/name}",
295 "languages_url": "http://api.github.com/repos/octocat/Hello-World/languages",
296 "merges_url": "http://api.github.com/repos/octocat/Hello-World/merges",
297 "milestones_url": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}",
298 "notifications_url": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
299 "pulls_url": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}",
300 "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}",
301 "ssh_url": "[email protected]:octocat/Hello-World.git",
302 "stargazers_url": "http://api.github.com/repos/octocat/Hello-World/stargazers",
303 "statuses_url": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
304 "subscribers_url": "http://api.github.com/repos/octocat/Hello-World/subscribers",
305 "subscription_url": "http://api.github.com/repos/octocat/Hello-World/subscription",
306 "tags_url": "http://api.github.com/repos/octocat/Hello-World/tags",
307 "teams_url": "http://api.github.com/repos/octocat/Hello-World/teams",
308 "trees_url": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
309 "clone_url": "https://github.com/octocat/Hello-World.git",
310 "mirror_url": "git:git.example.com/octocat/Hello-World",
311 "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks",
312 "svn_url": "https://svn.github.com/octocat/Hello-World",
313 "homepage": "https://github.com",
314 "language": None,
315 "forks_count": 9,
316 "stargazers_count": 80,
317 "watchers_count": 80,
318 "size": 108,
319 "default_branch": "main",
320 "open_issues_count": 0,
321 "is_template": True,
322 "topics": ["octocat", "atom", "electron", "api"],
323 "has_issues": True,
324 "has_projects": True,
325 "has_wiki": True,
326 "has_pages": False,
327 "has_downloads": True,
328 "archived": False,
329 "disabled": False,
330 "visibility": "public",
331 "pushed_at": "2011-01-26T19:06:43Z",
332 "created_at": "2011-01-26T19:01:12Z",
333 "updated_at": "2011-01-26T19:14:43Z",
334 "permissions": {"admin": False, "push": False, "pull": True},
335 "allow_rebase_merge": True,
336 "template_repository": None,
337 "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
338 "allow_squash_merge": True,
339 "allow_merge_commit": True,
340 "subscribers_count": 42,
341 "network_count": 0,
342 },
343 }