@pytest.fixture
def authenticated_es_testapp(es_app):
    ' TestApp for authenticated non-admin user with ES '
    environ = {'HTTP_ACCEPT': 'application/json', 'REMOTE_USER': 'TEST_AUTHENTICATED'}
    return webtest.TestApp(es_app, environ)
TestApp for authenticated non-admin user with ES
@pytest.fixture
def authenticated_es_testapp(es_app):
    '  '
    environ = {'HTTP_ACCEPT': 'application/json', 'REMOTE_USER': 'TEST_AUTHENTICATED'}
    return webtest.TestApp(es_app, environ)