From 5a93ca58fd1db7498beb6661947b6cbc5b2b75fc Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Tue, 1 Aug 2023 15:46:36 +0000 Subject: [PATCH] fix(tests): fixed user webform test; - Fixed password strength in user webform tests. - Added JS to resource new base template. --- .../templates/internal/package/resource_edit_base.html | 5 +++++ ckanext/canada/tests/test_webforms.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ckanext/canada/templates/internal/package/resource_edit_base.html b/ckanext/canada/templates/internal/package/resource_edit_base.html index a31b9a3cd..89342d1c3 100644 --- a/ckanext/canada/templates/internal/package/resource_edit_base.html +++ b/ckanext/canada/templates/internal/package/resource_edit_base.html @@ -7,3 +7,8 @@ {{ _('Edit') }} {% endif %} {% endblock %} + +{% block scripts %} + + {{ super() }} +{% endblock %} diff --git a/ckanext/canada/tests/test_webforms.py b/ckanext/canada/tests/test_webforms.py index 7354d3596..8441ea09f 100644 --- a/ckanext/canada/tests/test_webforms.py +++ b/ckanext/canada/tests/test_webforms.py @@ -230,8 +230,8 @@ def _filled_new_user_form(self): 'email': 'newuser@example.com', 'department': self.org['id'], 'phoneno': '1234567890', - 'password1': 'thisisapassword', - 'password2': 'thisisapassword', + 'password1': 'iptkH6kuctURRQadDBM0', # security extension required good passphrase/password + 'password2': 'iptkH6kuctURRQadDBM0', # security extension required good passphrase/password 'save': '' }