import pytest
from app import create_app

@pytest.fixture()
def app():
    app = create_app(FORCE_ENV_FOR_DYNACONF="testing")
    with app.app_context():
        yield app


@pytest.fixture()
def client(app):
    return app.test_client()


@pytest.fixture()
def data():
    return { "name": "Test", "sys": {"id": 1} }