PEP8 fixes

This commit is contained in:
abregman
2019-12-21 22:22:32 +02:00
parent 68e278fe15
commit 73665e6d52
6 changed files with 44 additions and 21 deletions

View File

@ -5,15 +5,17 @@ import os
import unittest
from config import basedir
from app import app
from app import app
from app import db
class TestCase(unittest.TestCase):
def setUp(self):
app.config['TESTING'] = True
app.config['WTF_CSRF_ENABLED'] = False
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'test.db')
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(
basedir, 'test.db')
self.app = app.test_client()
db.create_all()
@ -21,5 +23,6 @@ class TestCase(unittest.TestCase):
db.session.remove()
db.drop_all()
if __name__ == '__main__':
unittest.main()