def deleteFacility(name): """Delete a given facility by name or unique ID. @type name: str @param name: a facility name or unique ID """ Cuebot.getStub('facility').Delete( facility_pb2.FacilityDeleteRequest(name=name), timeout=Cuebot.Timeout)
def testDeleteFacility(self, getStubMock): stubMock = mock.Mock() stubMock.Delete.return_value = facility_pb2.FacilityDeleteResponse() getStubMock.return_value = stubMock opencue.api.deleteFacility(TEST_FACILITY_NAME) stubMock.Delete.assert_called_with( facility_pb2.FacilityDeleteRequest(name=TEST_FACILITY_NAME), timeout=mock.ANY)
def deleteFacility(name): Cuebot.getStub('facility').Delete( facility_pb2.FacilityDeleteRequest(name=name), timeout=Cuebot.Timeout)