New check-in features (#3022)

This commit is contained in:
Raphael Michel
2023-02-09 09:46:46 +01:00
committed by GitHub
parent 7b0d07065f
commit 6902725f3c
69 changed files with 1606 additions and 183 deletions

View File

@@ -679,6 +679,19 @@ def test_import_seat(user, event, item):
assert not s3.is_available()
@pytest.mark.django_db
@scopes_disabled()
def test_import_validity(user, event, item):
settings = dict(DEFAULT_SETTINGS)
settings['item'] = 'static:{}'.format(item.pk)
settings['valid_until'] = 'csv:J'
import_orders.apply(
args=(event.pk, inputfile_factory().id, settings, 'en', user.pk)
).get()
assert OrderPosition.objects.first().valid_until.isoformat() == '2021-06-28T11:00:00+00:00'
@pytest.mark.django_db
@scopes_disabled()
def test_import_subevent_invalid(user, event, item):