mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Fix further problems with middleware ordering
This commit is contained in:
@@ -27,6 +27,13 @@ def test_control_only_on_main_domain(env, client):
|
||||
assert r['Location'] == 'http://example.com/control/login'
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_append_slash(env, client):
|
||||
r = client.get('/control')
|
||||
assert r.status_code == 301
|
||||
assert r['Location'] == '/control/'
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_unknown_domain(env, client):
|
||||
r = client.get('/control/login', HTTP_HOST='foobar')
|
||||
|
||||
Reference in New Issue
Block a user