tests_authentic: adapt to evolutions in authentic2 (#42154)

* django-filters>=2 is now usable with authentic, for py2 run it must
  be explicitely limited to django-filter<2.
* settings must use MIDDLEWARE instead of MIDDLEWARE_CLASSES
This commit is contained in:
Benjamin Dauvergne 2020-04-27 18:22:51 +02:00
parent 540f274c33
commit 225e22747c
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ TENANT_BASE = '/that/path/does/not/exist'
# Add the XForwardedForMiddleware
MIDDLEWARE_CLASSES = ('authentic2.middleware.XForwardedForMiddleware',) + MIDDLEWARE_CLASSES
MIDDLEWARE = ('authentic2.middleware.XForwardedForMiddleware',) + MIDDLEWARE
# Add authentic settings loader
TENANT_SETTINGS_LOADERS = ('hobo.multitenant.settings_loaders.Authentic',) + TENANT_SETTINGS_LOADERS

View File

@ -40,6 +40,7 @@ deps:
Markdown<3
django-tables2<2.0
authentic: http://git.entrouvert.org/authentic.git/snapshot/authentic-master.tar.gz
py2-authentic: django-filter<2
passerelle: http://git.entrouvert.org/passerelle.git/snapshot/passerelle-master.tar.gz
py2-passerelle: suds
passerelle: python-memcached