def unsatisfy(self): """Unsatisfies the dependency. This makes the dependency active again and sets matching frames to DEPEND. """ self.stub.Unsatisfy( depend_pb2.DependUnsatisfyRequest(depend=self.data), timeout=Cuebot.Timeout)
def testUnsatisfy(self, getStubMock): stubMock = mock.Mock() stubMock.Unsatisfy.return_value = depend_pb2.DependUnsatisfyResponse() getStubMock.return_value = stubMock depend = opencue.wrappers.depend.Depend( depend_pb2.Depend(id=TEST_DEPEND_ID)) depend.unsatisfy() stubMock.Unsatisfy.assert_called_with( depend_pb2.DependUnsatisfyRequest(depend=depend.data), timeout=mock.ANY)
def unsatisfy(self): self.stub.Unsatisfy( depend_pb2.DependUnsatisfyRequest(depend=self.data), timeout=Cuebot.Timeout)