Conditions | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
11 | def test_get_sale_stats(party, tickets, api_client, api_client_authz_header): |
||
12 | url = f'/api/v1/ticketing/sale_stats/{party.id}' |
||
13 | headers = [api_client_authz_header] |
||
14 | |||
15 | response = api_client.get(url, headers=headers) |
||
16 | |||
17 | assert response.status_code == 200 |
||
18 | assert response.content_type == 'application/json' |
||
19 | assert response.get_json() == { |
||
20 | 'tickets_max': 1348, |
||
21 | 'tickets_sold': 5, |
||
22 | } |
||
40 |