From c0c5932e9e430b4dd0841b0b19827365a03f2f40 Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Sat, 7 Dec 2013 19:02:06 -0600 Subject: [PATCH] Update readme --- README.rst | 3 ++- .../{{cookiecutter.repo_name}}/tests/webtest_tests.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index a880335..6d4a1b5 100644 --- a/README.rst +++ b/README.rst @@ -13,7 +13,7 @@ Features - Flask-WTForms with login and registration forms - Flask-Login for authentication - Procfile for deploying to a PaaS (e.g. Heroku) -- Flask-Testing, nose, and Factory-Boy for testing +- Flask-Testing, Flask-Webtest, nose, and Factory-Boy for testing - A simple ``manage.py`` script. - CSS and JS minification using Flask-Assets - Utilizes best practices: `Blueprints `_ and `Application Factory `_ patterns @@ -71,6 +71,7 @@ Changelog - Simple test setup. Just create a subclass of ``DbTestCase``. - Flask-Testing support. - Use Factory-Boy for test factories. +- Use WebTest for functional testing. 0.2.0 (09/21/2013) ****************** diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/tests/webtest_tests.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/tests/webtest_tests.py index d428e42..29ad412 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/tests/webtest_tests.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/tests/webtest_tests.py @@ -96,7 +96,7 @@ class TestRegistering(DbTestCase): user.save() # Goes to registration page res = self.w.get(url_for("public.register")) - # Fills out form, but + # Fills out form, but username is already registered form = res.forms["registerForm"] form['username'] = user.username form['email'] = 'foo@bar.com'