diff --git a/{{cookiecutter.app_name}}/requirements/dev.txt b/{{cookiecutter.app_name}}/requirements/dev.txt index 42e94ba..1783bbb 100644 --- a/{{cookiecutter.app_name}}/requirements/dev.txt +++ b/{{cookiecutter.app_name}}/requirements/dev.txt @@ -2,10 +2,8 @@ -r prod.txt # Testing -nose -Flask-Testing +pytest factory-boy>=2.2.1 -Flask-WebTest>=0.0.6 # Management script Flask-Script diff --git a/{{cookiecutter.app_name}}/tests/base.py b/{{cookiecutter.app_name}}/tests/base.py deleted file mode 100644 index 2b44d72..0000000 --- a/{{cookiecutter.app_name}}/tests/base.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from flask.ext.testing import TestCase -from {{ cookiecutter.app_name }}.settings import TestConfig -from {{ cookiecutter.app_name }}.app import create_app -from {{ cookiecutter.app_name }}.database import db - - -class DbTestCase(TestCase): - """Base TestCase for tests that require a database.""" - - def create_app(self): - app = create_app(TestConfig) - with app.app_context(): - db.create_all() - return app - - def tearDown(self): - db.session.remove() - db.drop_all()