def grr_set_default_flow_timeout(line: Text) -> None: """Sets flow timeout to default value (30 seconds). Args: line: A string representing arguments passed to the magic command. Returns: Nothing. """ del line # Unused. magics_impl.grr_set_default_flow_timeout_impl()
def testDefault(self): with mock.patch.object(_timeout, '_FLOW_TIMEOUT', 10): magics_impl.grr_set_default_flow_timeout_impl() self.assertEqual(_timeout._FLOW_TIMEOUT, 30)