def _get_test_app():
 config['ckan.legacy_templates'] = False
 config['testing'] = True
 app = ckan.config.middleware.make_app(config['global_conf'], **config)
 app = CKANTestApp(app)
 return app

def _get_test_app ( ) : config [ 'ckan.legacy_templates' ] = False config [ 'testing' ] = True app = ckan . config . middleware . make_app ( config [ 'global_conf' ] , ** config ) app = CKANTestApp ( app ) return app
return a webtest .