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
import pytest | |
from api import create_app, db | |
@pytest.fixture | |
def app(): | |
flask_app = create_app() | |
flask_app.app_context().push() | |
yield flask_app | |