From 6cbc513e6d50c250819f679f887d7a00a2e79818 Mon Sep 17 00:00:00 2001 From: Steve Steiner Date: Thu, 15 Sep 2016 12:40:15 -0400 Subject: [PATCH] Make test_docker.sh tests pass by passing new password auth rules --- tests/test_cookiecutter_generation.py | 0 tests/test_docker.sh | 0 .../users/tests/test_admin.py | 10 +++++----- 3 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 tests/test_cookiecutter_generation.py mode change 100644 => 100755 tests/test_docker.sh diff --git a/tests/test_cookiecutter_generation.py b/tests/test_cookiecutter_generation.py old mode 100644 new mode 100755 diff --git a/tests/test_docker.sh b/tests/test_docker.sh old mode 100644 new mode 100755 diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_admin.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_admin.py index 10b07b74..a1ff0b84 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_admin.py +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_admin.py @@ -6,14 +6,14 @@ from ..admin import MyUserCreationForm class TestMyUserCreationForm(TestCase): def setUp(self): - self.user = self.make_user() + self.user = self.make_user('notalamode', 'notalamodespassword') def test_clean_username_success(self): # Instantiate the form with a new username form = MyUserCreationForm({ 'username': 'alamode', - 'password1': '123456', - 'password2': '123456', + 'password1': '7jefB#f@Cc7YJB]2v', + 'password2': '7jefB#f@Cc7YJB]2v', }) # Run is_valid() to trigger the validation valid = form.is_valid() @@ -27,8 +27,8 @@ class TestMyUserCreationForm(TestCase): # Instantiate the form with the same username as self.user form = MyUserCreationForm({ 'username': self.user.username, - 'password1': '123456', - 'password2': '123456', + 'password1': 'notalamodespassword', + 'password2': 'notalamodespassword', }) # Run is_valid() to trigger the validation, which is going to fail # because the username is already taken