예제 #1
0
def grr_set_no_flow_timeout(line: Text) -> None:
    """Disables flow timeout (it means wait forever).

  Args:
    line: A string representing arguments passed to the magic command.

  Returns:
    Nothing.
  """
    del line  # Unused.
    magics_impl.grr_set_no_flow_timeout_impl()
예제 #2
0
 def testNone(self):
     with mock.patch.object(_timeout, '_FLOW_TIMEOUT', 30):
         magics_impl.grr_set_no_flow_timeout_impl()
         self.assertIsNone(_timeout._FLOW_TIMEOUT)