def setUp(self):
        basedir = os.path.abspath(os.path.dirname(__file__))
        app.config['TESTING'] = True
        app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + \
                                                os.path.join(basedir, TEST_DB)
        self.app = app.test_client()
        db.create_all()
Set up a blank temp database before each test
dataset/ETHPy150Open Akagi201/learning-python/flask/flaskr-tdd/app-test.py/FlaskrTestCase.setUp