예제 #1
0
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
예제 #2
0
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