@pytest.fixture
def indexer_testapp(es_app):
    ' Indexer testapp, meant for manually triggering indexing runs by posting to /index.\n        Always uses the ES app (obviously, but not so obvious previously) '
    environ = {'HTTP_ACCEPT': 'application/json', 'REMOTE_USER': 'INDEXER'}
    return webtest.TestApp(es_app, environ)
Indexer testapp, meant for manually triggering indexing runs by posting to /index.
Always uses the ES app (obviously, but not so obvious previously)
@pytest.fixture
def indexer_testapp(es_app):
    ' Indexer testapp, meant for manually triggering indexing runs by posting to /index.\n        Always uses the ES app (obviously, but not so obvious previously) '
    environ = {'HTTP_ACCEPT': 'application/json', 'REMOTE_USER': 'INDEXER'}
    return webtest.TestApp(es_app, environ)