Debian Codegraph @

tests/legacy/responses/branch.py

raw
1 """Fixtures."""
2 # pylint: disable=missing-docstring
3 import pytest
4
5
6 @pytest.fixture()
7 def branch_response():
8 return {
9 "name": "main",
10 "commit": {
11 "sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
12 "node_id": "MDY6Q29tbWl0N2ZkMWE2MGIwMWY5MWIzMTRmNTk5NTVhNGU0ZDRlODBkOGVkZjExZA==",
13 "commit": {
14 "author": {
15 "name": "The Octocat",
16 "date": "2012-03-06T15:06:50-08:00",
17 "email": "[email protected]",
18 },
19 "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
20 "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.",
21 "tree": {
22 "sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608",
23 "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608",
24 },
25 "committer": {
26 "name": "The Octocat",
27 "date": "2012-03-06T15:06:50-08:00",
28 "email": "[email protected]",
29 },
30 "verification": {
31 "verified": False,
32 "reason": "unsigned",
33 "signature": None,
34 "payload": None,
35 },
36 },
37 "author": {
38 "gravatar_id": "",
39 "avatar_url": "https://secure.gravatar.com/avatar/7ad39074b0584bc555d0417ae3e7d974?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
40 "url": "https://api.github.com/users/octocat",
41 "id": 583231,
42 "login": "octocat",
43 },
44 "parents": [
45 {
46 "sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
47 "url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
48 },
49 {
50 "sha": "762941318ee16e59dabbacb1b4049eec22f0d303",
51 "url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303",
52 },
53 ],
54 "url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
55 "committer": {
56 "gravatar_id": "",
57 "avatar_url": "https://secure.gravatar.com/avatar/7ad39074b0584bc555d0417ae3e7d974?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
58 "url": "https://api.github.com/users/octocat",
59 "id": 583231,
60 "login": "octocat",
61 },
62 },
63 "_links": {
64 "html": "https://github.com/octocat/Hello-World/tree/main",
65 "self": "https://api.github.com/repos/octocat/Hello-World/branches/main",
66 },
67 "protected": True,
68 "protection": {
69 "enabled": True,
70 "required_status_checks": {
71 "enforcement_level": "non_admins",
72 "contexts": ["ci-test", "linter"],
73 },
74 },
75 "protection_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection",
76 }