| 1 |
"""Fixtures.""" |
| 2 |
# pylint: disable=missing-docstring |
| 3 |
import pytest |
| 4 |
|
| 5 |
|
| 6 |
@pytest.fixture() |
| 7 |
def tree_response(): |
| 8 |
return { |
| 9 |
"sha": "fc6274d15fa3ae2ab983129fb037999f264ba9a7", |
| 10 |
"url": "https://api.github.com/repos/octocat/Hello-World/trees/fc6274d15fa3ae2ab983129fb037999f264ba9a7", |
| 11 |
"tree": [ |
| 12 |
{ |
| 13 |
"path": "subdir/file.txt", |
| 14 |
"mode": "100644", |
| 15 |
"type": "blob", |
| 16 |
"size": 132, |
| 17 |
"sha": "7c258a9869f33c1e1e1f74fbb32f07c86cb5a75b", |
| 18 |
"url": "https://api.github.com/repos/octocat/Hello-World/git/7c258a9869f33c1e1e1f74fbb32f07c86cb5a75b", |
| 19 |
}, |
| 20 |
{ |
| 21 |
"path": "subdir", |
| 22 |
"mode": "100644", |
| 23 |
"type": "tree", |
| 24 |
"size": 132, |
| 25 |
"sha": "7c258a9869f33c1e1e1f74fbb32f07c86cb5a75b", |
| 26 |
"url": "https://api.github.com/repos/octocat/Hello-World/git/7c258a9869f33c1e1e1f74fbb32f07c86cb5a75b", |
| 27 |
}, |
| 28 |
], |
| 29 |
"truncated": False, |
| 30 |
} |