@pytest.fixture
def anontestapp(app):
    'TestApp for anonymous user (i.e., no user specified), accepting JSON data.'
    environ = {'HTTP_ACCEPT': 'application/json'}
    return webtest.TestApp(app, environ)
TestApp for anonymous user (i.e., no user specified), accepting JSON data.
@pytest.fixture
def anontestapp(app):
    
    environ = {'HTTP_ACCEPT': 'application/json'}
    return webtest.TestApp(app, environ)