@pytest.fixture
def html_es_testapp(es_app):
    'TestApp with ES + Postgres for TEST user, accepting text/html content.'
    environ = {'HTTP_ACCEPT': 'text/html', 'REMOTE_USER': 'TEST'}
    return webtest.TestApp(es_app, environ)
TestApp with ES + Postgres for TEST user, accepting text/html content.
@pytest.fixture
def html_es_testapp(es_app):
    
    environ = {'HTTP_ACCEPT': 'text/html', 'REMOTE_USER': 'TEST'}
    return webtest.TestApp(es_app, environ)