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