Revision 57756917
Correction suite à 724172a.
Corrige les tests unitaires suite au commit
724172a72c4e130d1fcfbe4e5ef2cb4133660adb ajoutant l'adresse IP du
visiteur (non définie par défaut dans les tests unitaires).
Change-Id: Ib9765f7f5864be9be4bb5793ddb62ac38c60576b
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/1517
Tested-by: Build system <qa@vigilo-dev.si.c-s.fr>
Reviewed-by: Francois POIROTTE <francois.poirotte@c-s.fr>
vigigraph/tests/functional/test_authentication.py | ||
---|---|---|
56 | 56 |
assert 'authtkt' in resp.request.cookies, \ |
57 | 57 |
'Session cookie was not defined: %s' % resp.request.cookies |
58 | 58 |
# Logging out: |
59 |
resp = self.app.get('/logout_handler', status=302) |
|
59 |
resp = self.app.get('/logout_handler', status=302, |
|
60 |
extra_environ={'REMOTE_ADDR': '127.0.0.1'}) |
|
60 | 61 |
assert resp.location.startswith('/post_logout') or \ |
61 | 62 |
resp.location.startswith('http://localhost/post_logout'), \ |
62 | 63 |
"Result: %s" % resp.location |
Also available in: Unified diff