tests.test_api_root   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A describe_root() 0 13 1
1
# pylint: disable=unused-variable,expression-not-assigned
2
3
from expecter import expect
0 ignored issues
show
introduced by
Unable to import 'expecter'
Loading history...
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