changeset 8378:754dbf31b551 stable

tests: fix test_admin_auth_settings.py dependency on order of tests using the same user
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 30 Apr 2020 15:23:04 +0200
parents 86bf2cd71a65
children a893d2ce599c
files kallithea/tests/functional/test_admin_auth_settings.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/functional/test_admin_auth_settings.py	Thu Apr 30 13:57:40 2020 +0200
+++ b/kallithea/tests/functional/test_admin_auth_settings.py	Thu Apr 30 15:23:04 2020 +0200
@@ -155,12 +155,12 @@
         response = self.app.get(
             url=base.url(controller='admin/my_account', action='my_account'),
             extra_environ={'THE_USER_NAME': 'johnd',
-                           'THE_USER_EMAIL': 'john@example.org',
+                           'THE_USER_EMAIL': 'john2@example.org',
                            'THE_USER_FIRSTNAME': 'John',
                            'THE_USER_LASTNAME': 'Doe',
                            }
         )
-        assert response.form['email'].value == 'john@example.org'
+        assert response.form['email'].value == 'john2@example.org'
         assert response.form['firstname'].value == 'John'
         assert response.form['lastname'].value == 'Doe'