@pytest.fixture(scope='session')
def es_app(es_app_settings, **kwargs):
    '\n    App that uses both Postgres and ES - pass this as "app" argument to TestApp.\n    Pass all kwargs onto create_mapping\n    '
    app = main({}, **es_app_settings)
    create_mapping.run(app, **kwargs)
    return app
App that uses both Postgres and ES - pass this as "app" argument to TestApp.
Pass all kwargs onto create_mapping
@pytest.fixture(scope='session')
def es_app(es_app_settings, **kwargs):
    '\n    App that uses both Postgres and ES - pass this as "app" argument to TestApp.\n    Pass all kwargs onto create_mapping\n    '
    app = main({}, **es_app_settings)
    create_mapping.run(app, **kwargs)
    return app