Beispiel #1
0
    def testDelete(self, getStubMock):
        stubMock = mock.Mock()
        stubMock.Delete.return_value = job_pb2.GroupDeleteResponse()
        getStubMock.return_value = stubMock

        group = opencue.wrappers.group.Group(
            job_pb2.Group(name=TEST_GROUP_NAME))
        group.delete()

        stubMock.Delete.assert_called_with(
            job_pb2.GroupDeleteRequest(group=group.data), timeout=mock.ANY)
Beispiel #2
0
 def delete(self):
     self.stub.Delete(job_pb2.GroupDeleteRequest(group=self.data),
                      timout=Cuebot.Timeout)