From ce76da909bf38ebd5ab372ca62f9c0683ed74331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Cl=C3=A9rice?= Date: Wed, 24 Jan 2024 09:51:30 +0100 Subject: [PATCH] [WIP] Fixing test for PSQL --- app/models/user.py | 2 +- tests/test_selenium/test_corpus_init.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/user.py b/app/models/user.py index 7374ad8f..a41b8f0c 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -55,7 +55,7 @@ class User(UserMixin, db.Model): first_name = db.Column(db.String(64), index=True) last_name = db.Column(db.String(64), index=True) email = db.Column(db.String(64), unique=True, index=True) - password_hash = db.Column(db.String(128)) + password_hash = db.Column(db.String(162)) role_id = db.Column(db.Integer, db.ForeignKey('roles.id')) locale = db.Column(db.String(10), default="en", nullable=True) diff --git a/tests/test_selenium/test_corpus_init.py b/tests/test_selenium/test_corpus_init.py index 99790294..87041da4 100644 --- a/tests/test_selenium/test_corpus_init.py +++ b/tests/test_selenium/test_corpus_init.py @@ -431,6 +431,8 @@ def test_registration_with_an_existing_name(self): self.driver_find_element_by_id("submit").click() + self.driver.implicitly_wait(5) + self.assertEqual( sorted([e.text.strip() for e in self.driver_find_elements_by_css_selector(".alert.alert-danger")]), sorted([