1 | # pylint: disable=unused-variable,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_root(): |
||
9 | |||
10 | def it_returns_links_and_metadata(client): |
||
11 | status, data = load(client.get("/api/")) |
||
12 | |||
13 | expect(status) == 200 |
||
14 | expect(data) == { |
||
15 | 'templates': "http://localhost/api/templates/", |
||
16 | 'fonts': "http://localhost/api/fonts/", |
||
17 | 'aliases': "http://localhost/api/aliases/", |
||
18 | 'search': "http://localhost/api/search/", |
||
19 | 'version': "5.6", |
||
20 | 'changes': "https://raw.githubusercontent.com/jacebrowning/memegen/master/CHANGELOG.md" |
||
21 | } |
||
22 |