mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Added an organizer overview page
This commit is contained in:
@@ -47,6 +47,14 @@ def test_event_with_custom_domain_on_main_domain(env, client):
|
||||
assert r['Location'] == 'http://foobar/2015/'
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_organizer_with_custom_domain_on_main_domain(env, client):
|
||||
KnownDomain.objects.create(domainname='foobar', organizer=env[0])
|
||||
r = client.get('/mrmcd/', HTTP_HOST='example.com')
|
||||
assert r.status_code == 302
|
||||
assert r['Location'] == 'http://foobar'
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_event_on_custom_domain_only_with_wrong_organizer(env, client):
|
||||
organizer2 = Organizer.objects.create(name='Dummy', slug='dummy')
|
||||
|
||||
Reference in New Issue
Block a user