Add skeleton app with namespaces

This commit is contained in:
Alan Pryor
2019-05-18 13:00:13 -04:00
parent 2677021a05
commit 61d1388f5d
43 changed files with 1031 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
import pytest
from fte import create_app
from app import create_app
@pytest.fixture
@@ -15,7 +15,7 @@ def client(app):
@pytest.fixture
def db(app):
from fte import db
from app import db
with app.app_context():
db.create_all()
yield db