forked from CGM_Public/pretix_original
@@ -1,6 +1,5 @@
|
|||||||
import pytest
|
import pytest
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.http import Http404
|
|
||||||
from django.test.utils import override_settings
|
from django.test.utils import override_settings
|
||||||
from django.utils.timezone import now
|
from django.utils.timezone import now
|
||||||
|
|
||||||
@@ -65,8 +64,8 @@ def test_event_on_custom_domain_only_with_wrong_organizer(env, client):
|
|||||||
date_from=now(), live=True
|
date_from=now(), live=True
|
||||||
)
|
)
|
||||||
KnownDomain.objects.create(domainname='foobar', organizer=env[0])
|
KnownDomain.objects.create(domainname='foobar', organizer=env[0])
|
||||||
with pytest.raises(Http404):
|
r = client.get('/dummy/1234/', HTTP_HOST='foobar')
|
||||||
client.get('/dummy/1234/', HTTP_HOST='foobar')
|
assert r.status_code == 404
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db
|
@pytest.mark.django_db
|
||||||
|
|||||||
Reference in New Issue
Block a user