예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
파일: depend.py 프로젝트: vibss2397/OpenCue
 def unsatisfy(self):
     self.stub.Unsatisfy(
         depend_pb2.DependUnsatisfyRequest(depend=self.data),
         timeout=Cuebot.Timeout)