API: Fix creation of items with required membership types

This commit is contained in:
Raphael Michel
2022-02-17 17:33:52 +01:00
parent 18917769ef
commit 06ffa0bcd5
3 changed files with 12 additions and 1 deletions

View File

@@ -213,4 +213,10 @@ def item(event):
return event.items.create(name='foo', default_price=3)
@pytest.fixture
@scopes_disabled()
def membership_type(organizer):
return organizer.membership_types.create(name='foo')
utils.setup_databases = scopes_disabled()(utils.setup_databases)