Created
November 9, 2017 16:07
-
-
Save javamo/26ea38218400942e280f1a951b2dcf33 to your computer and use it in GitHub Desktop.
tests/base.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask_testing import TestCase | |
from app import create_app, db | |
class BaseTestCase(TestCase): | |
def create_app(self): | |
return create_app("testing") | |
def setUp(self): | |
db.create_all() | |
def tearDown(self): | |
db.session.remove() | |
db.drop_all() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment