def delete_group_svc(pyramid_config, pyramid_request): service = mock.Mock(spec_set=DeleteGroupService(request=pyramid_request)) pyramid_config.register_service(service, name='delete_group') return service
def delete_group_svc(pyramid_config, pyramid_request): service = mock.Mock( spec_set=DeleteGroupService(pyramid_request, annotation_delete_svc)) pyramid_config.register_service(service, name="delete_group") return service