Conditions | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
10 | def test_healthcheck_ok(admin_client): |
||
11 | expected_media_type = 'application/health+json' |
||
12 | |||
13 | response = admin_client.get('/health') |
||
14 | |||
15 | assert response.status_code == 200 |
||
16 | assert response.content_type == expected_media_type |
||
17 | assert response.mimetype == expected_media_type |
||
18 | assert response.get_json() == { |
||
19 | 'status': 'ok', |
||
20 | 'details': { |
||
21 | 'rdbms': [{'status': 'ok'}], |
||
22 | }, |
||
24 |