1 | # pylint: disable=unused-variable,misplaced-comparison-constant,expression-not-assigned |
||
2 | |||
3 | from expecter import expect |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
4 | |||
5 | from .utils import load |
||
6 | |||
7 | |||
8 | def describe_get(): |
||
9 | |||
10 | def it_returns_a_list(client): |
||
11 | status, data = load(client.get("/api/fonts/")) |
||
12 | |||
13 | expect(status) == 200 |
||
14 | expect(data).contains('impact') |
||
15 | |||
16 | |||
17 | def describe_post(): |
||
18 | |||
19 | def new_fonts_are_created_using_github(client): |
||
20 | status, data = load(client.post("/api/fonts/")) |
||
21 | |||
22 | expect(status) == 403 |
||
23 | expect(data) == dict( |
||
24 | message="https://raw.githubusercontent.com/jacebrowning/memegen/master/CONTRIBUTING.md" |
||
25 | ) |
||
26 |