summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-06-08 23:21:37 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-06-08 23:21:58 (GMT)
commitc7676678dfa115c6a57588b28501add22bb73476 (patch)
tree494d79dfe2d01a8eccb47a38a20c9ac6a915c886
parentb10c0e955b179f4ff297811dcf8cb8cc7f7b9f66 (diff)
downloadwelco-c7676678dfa115c6a57588b28501add22bb73476.zip
welco-c7676678dfa115c6a57588b28501add22bb73476.tar.gz
welco-c7676678dfa115c6a57588b28501add22bb73476.tar.bz2
tests: make tests pass with django-webtest >= 1.9.6
-rw-r--r--tests/test_source_maarch.py2
-rw-r--r--tox.ini2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_source_maarch.py b/tests/test_source_maarch.py
index 8a2461b..85fc0ed 100644
--- a/tests/test_source_maarch.py
+++ b/tests/test_source_maarch.py
@@ -250,7 +250,7 @@ def test_feed(settings, app, maarch, wcs, user):
user.set_password('test')
user.save()
# verify authentication error
- response = app.post_json('/api/mail/response/', params={}, status=401)
+ response = app.post_json('/api/mail/response/', params={}, status=403)
app.authorization = ('Basic', ('test', 'test'))
# verify serializer error
response = app.post_json('/api/mail/response/', params={}, status=400)
diff --git a/tox.ini b/tox.ini
index 15f99a1..2ffdf06 100644
--- a/tox.ini
+++ b/tox.ini
@@ -23,7 +23,7 @@ deps =
python-dateutil
pylint<1.8
pylint-django<0.8.1
- django-webtest<1.9.5
+ django-webtest>=1.9.6
pyquery
lxml
git+https://git.entrouvert.org/debian/django-ckeditor.git