Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1def check_response(response):
2 assert response.status_code == 200
3 assert response.is_json
5def test_two(client):
6 response = client.get('/')
7 assert response.data == b'Hello, World!'
9def test_values(client):
10 for val in ["Bundesland","Landkreis","Altersgruppe","Geschlecht","NOTCOLUMN"]:
11 response = client.get(f'/lists/values/{val}')
12 check_response(response)
14def test_lists(client):
15 for val in ['dates','groups','columns']:
16 response = client.get(f'/lists/{val}')
17 check_response(response)
19def test_attr(client):
20 response = client.get('/lists/attributes')
21 check_response(response)
23def test_rkiline(client):
24 response = client.get('/rkiline/Refdatum/Bundesland/Hessen')
25 check_response(response)
27def test_rkibar(client):
28 response = client.get('/rkibar/SummeFall/Altersgruppe/Geschlecht')
29 check_response(response)
31 response = client.get('/rkibar/SummeFall/Altersgruppe/null')
32 check_response(response)
34 response = client.get('/rkibar/SummeFalle/Altersgruppe/null')
35 assert response.status_code == 500