mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Remove dead test fixtures (#1284)
This commit is contained in:
committed by
Raphael Michel
parent
4e9e925b32
commit
a10b31cacb
@@ -3,12 +3,11 @@ import json
|
||||
|
||||
import pytest
|
||||
from django.utils.http import urlquote
|
||||
from django.utils.timezone import now
|
||||
|
||||
from pretix.api.models import (
|
||||
OAuthAccessToken, OAuthApplication, OAuthGrant, OAuthRefreshToken,
|
||||
)
|
||||
from pretix.base.models import Event, Organizer, Team, User
|
||||
from pretix.base.models import Organizer, Team, User
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@@ -16,15 +15,6 @@ def organizer():
|
||||
return Organizer.objects.create(name='Dummy', slug='dummy')
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def event(organizer):
|
||||
event = Event.objects.create(
|
||||
organizer=organizer, name='Dummy', slug='dummy',
|
||||
date_from=now()
|
||||
)
|
||||
return event
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def admin_team(organizer):
|
||||
return Team.objects.create(organizer=organizer, can_change_teams=True, name='Admin team', all_events=True,
|
||||
|
||||
Reference in New Issue
Block a user