Commit 56d1a815 authored by Hugo Kerstens's avatar Hugo Kerstens

Add empty_app fixture

parent 815dd77b
......@@ -23,9 +23,17 @@ def app():
db.init_app(app)
with app.app_context():
db.drop_all()
db.create_all()
app.register_blueprint(api_bp, url_prefix='/api')
return app
@pytest.fixture
def empty_app(app):
with app.app_context():
db.drop_all()
db.create_all()
return app
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment