mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Added tests for locale settings
This commit is contained in:
11
src/tests/presale/test_locale.py
Normal file
11
src/tests/presale/test_locale.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
|
||||||
|
class LocaleTest(TestCase):
|
||||||
|
|
||||||
|
def test_set_locale_cookie(self):
|
||||||
|
response = self.client.get('/control/login')
|
||||||
|
assert response['Content-Language'] == 'en'
|
||||||
|
self.client.get('/locale/set?locale=de')
|
||||||
|
assert self.client.get('/')
|
||||||
|
assert response['Content-Language'] == 'de'
|
||||||
Reference in New Issue
Block a user