Update requirements and remove unused tests/base.py

master
Steven Loria 11 years ago
parent 029a32decd
commit c6a49db3c2
  1. 4
      {{cookiecutter.app_name}}/requirements/dev.txt
  2. 19
      {{cookiecutter.app_name}}/tests/base.py

@ -2,10 +2,8 @@
-r prod.txt -r prod.txt
# Testing # Testing
nose pytest
Flask-Testing
factory-boy>=2.2.1 factory-boy>=2.2.1
Flask-WebTest>=0.0.6
# Management script # Management script
Flask-Script Flask-Script

@ -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()
Loading…
Cancel
Save