Exporter API: Fix primary key fields

This commit is contained in:
Raphael Michel
2020-11-19 11:28:21 +01:00
parent 627f601bdb
commit 5a95550075
2 changed files with 17 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ def test_org_validate_events(token_client, organizer, team, event):
'_format': 'xlsx',
}, format='json')
assert resp.status_code == 400
assert resp.data == {"events": ["This field is required."]}
assert resp.data == {"events": ["This list may not be empty."]}
resp = token_client.post('/api/v1/organizers/{}/exporters/orderlist/run/'.format(organizer.slug), data={
'_format': 'xlsx',