Check-in API: require_attention and ignore_status

This commit is contained in:
Raphael Michel
2019-04-23 17:04:22 +02:00
parent 840b30c3c2
commit e7384f7e85
5 changed files with 56 additions and 11 deletions

View File

@@ -69,6 +69,8 @@ def order(event, item, other_item, taxrule):
TEST_ORDERPOSITION1_RES = {
"id": 1,
"require_attention": False,
"order__status": "p",
"order": "FOO",
"positionid": 1,
"item": 1,
@@ -92,6 +94,8 @@ TEST_ORDERPOSITION1_RES = {
TEST_ORDERPOSITION2_RES = {
"id": 2,
"require_attention": False,
"order__status": "p",
"order": "FOO",
"positionid": 2,
"item": 1,
@@ -372,6 +376,14 @@ def test_list_all_items_positions(token_client, organizer, event, clist, clist_a
assert resp.status_code == 200
assert [] == resp.data['results']
resp = token_client.get('/api/v1/organizers/{}/events/{}/checkinlists/{}/positions/?ignore_status=true'.format(
organizer.slug, event.slug, clist_all.pk
))
assert resp.status_code == 200
p1['order__status'] = 'n'
p2['order__status'] = 'n'
assert [p2, p1] == resp.data['results']
@pytest.mark.django_db
def test_list_limited_items_positions(token_client, organizer, event, clist, item, order):