Пример #1
0
    def satisfy(self):
        """Satisfies the dependency.

        This sets any frames waiting on this dependency to the WAITING state.
        """
        self.stub.Satisfy(depend_pb2.DependSatisfyRequest(depend=self.data),
                          timeout=Cuebot.Timeout)
Пример #2
0
    def testSatisfy(self, getStubMock):
        stubMock = mock.Mock()
        stubMock.Satisfy.return_value = depend_pb2.DependSatisfyResponse()
        getStubMock.return_value = stubMock

        depend = opencue.wrappers.depend.Depend(
            depend_pb2.Depend(id=TEST_DEPEND_ID))
        depend.satisfy()

        stubMock.Satisfy.assert_called_with(
            depend_pb2.DependSatisfyRequest(depend=depend.data), timeout=mock.ANY)
Пример #3
0
 def satisfy(self):
     self.stub.Satisfy(depend_pb2.DependSatisfyRequest(depend=self.data),
                       timeout=Cuebot.Timeout)