@pytest.fixture(scope='session')
def testapp(app):
    'TestApp for username TEST, accepting JSON data.'
    environ = {'HTTP_ACCEPT': 'application/json', 'REMOTE_USER': 'TEST'}
    return webtest.TestApp(app, environ)
TestApp for username TEST, accepting JSON data.
@pytest.fixture(scope='session')
def testapp(app):
    
    environ = {'HTTP_ACCEPT': 'application/json', 'REMOTE_USER': 'TEST'}
    return webtest.TestApp(app, environ)