@pytest.fixture(scope='session')
def es_testapp(es_app):
    ' TestApp with ES + Postgres. Must be imported where it is needed. '
    environ = {'HTTP_ACCEPT': 'application/json', 'REMOTE_USER': 'TEST'}
    return webtest.TestApp(es_app, environ)
TestApp with ES + Postgres. Must be imported where it is needed.
@pytest.fixture(scope='session')
def es_testapp(es_app):
    '  '
    environ = {'HTTP_ACCEPT': 'application/json', 'REMOTE_USER': 'TEST'}
    return webtest.TestApp(es_app, environ)