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'