Files
pretix_original/src/tests/settings.py
Raphael Michel 8a6a515b6a Refs #775 -- Pluggable authentication backends (#1447)
* Drag-and-drop: Force csrf_token to be present

* Rough design

* Missing file

* b.visble

* Forms

* Docs

* Tests

* Fix variable
2019-10-17 09:11:03 +02:00

19 lines
438 B
Python

import os
from pretix.testutils.settings import * # NOQA
TEST_DIR = os.path.dirname(__file__)
TEMPLATES[0]['DIRS'].append(os.path.join(TEST_DIR, 'templates')) # NOQA
INSTALLED_APPS.append('tests.testdummy') # NOQA
PRETIX_AUTH_BACKENDS = [
'pretix.base.auth.NativeAuthBackend',
'tests.testdummy.auth.TestFormAuthBackend',
'tests.testdummy.auth.TestRequestAuthBackend',
]
for a in PLUGINS:
INSTALLED_APPS.remove(a)