Debian Codegraph @

tests/legacy/responses/repository/commit_fixtrue.py

raw
1 """
2 Generated by generate/generate.py - 2020-08-02 01:27:33.057033
3 """
4 import pytest
5
6
7 @pytest.fixture()
8 def commit_fixtrue_response():
9 return {
10 "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
11 "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
12 "node_id": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==",
13 "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e",
14 "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments",
15 "commit": {
16 "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
17 "author": {
18 "name": "Monalisa Octocat",
19 "email": "[email protected]",
20 "date": "2011-04-14T16:00:49Z",
21 },
22 "committer": {
23 "name": "Monalisa Octocat",
24 "email": "[email protected]",
25 "date": "2011-04-14T16:00:49Z",
26 },
27 "message": "Fix all the bugs",
28 "tree": {
29 "url": "https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e",
30 "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
31 },
32 "comment_count": 0,
33 "verification": {
34 "verified": False,
35 "reason": "unsigned",
36 "signature": None,
37 "payload": None,
38 },
39 },
40 "author": {
41 "login": "octocat",
42 "id": 1,
43 "node_id": "MDQ6VXNlcjE=",
44 "avatar_url": "https://github.com/images/error/octocat_happy.gif",
45 "gravatar_id": "",
46 "url": "https://api.github.com/users/octocat",
47 "html_url": "https://github.com/octocat",
48 "followers_url": "https://api.github.com/users/octocat/followers",
49 "following_url": "https://api.github.com/users/octocat/following{/other_user}",
50 "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
51 "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
52 "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
53 "organizations_url": "https://api.github.com/users/octocat/orgs",
54 "repos_url": "https://api.github.com/users/octocat/repos",
55 "events_url": "https://api.github.com/users/octocat/events{/privacy}",
56 "received_events_url": "https://api.github.com/users/octocat/received_events",
57 "type": "User",
58 "site_admin": False,
59 },
60 "committer": {
61 "login": "octocat",
62 "id": 1,
63 "node_id": "MDQ6VXNlcjE=",
64 "avatar_url": "https://github.com/images/error/octocat_happy.gif",
65 "gravatar_id": "",
66 "url": "https://api.github.com/users/octocat",
67 "html_url": "https://github.com/octocat",
68 "followers_url": "https://api.github.com/users/octocat/followers",
69 "following_url": "https://api.github.com/users/octocat/following{/other_user}",
70 "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
71 "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
72 "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
73 "organizations_url": "https://api.github.com/users/octocat/orgs",
74 "repos_url": "https://api.github.com/users/octocat/repos",
75 "events_url": "https://api.github.com/users/octocat/events{/privacy}",
76 "received_events_url": "https://api.github.com/users/octocat/received_events",
77 "type": "User",
78 "site_admin": False,
79 },
80 "parents": [
81 {
82 "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
83 "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
84 }
85 ],
86 "stats": {"additions": 104, "deletions": 4, "total": 108},
87 "files": [
88 {
89 "filename": "file1.txt",
90 "additions": 10,
91 "deletions": 2,
92 "changes": 12,
93 "status": "modified",
94 "raw_url": "https://github.com/octocat/Hello-World/raw/7ca483543807a51b6079e54ac4cc392bc29ae284/file1.txt",
95 "blob_url": "https://github.com/octocat/Hello-World/blob/7ca483543807a51b6079e54ac4cc392bc29ae284/file1.txt",
96 "patch": "@@ -29,7 +29,7 @@\n.....",
97 }
98 ],
99 }