Classes | Functions | Variables
tests.unit._exit_test Namespace Reference

Classes

class  ExitTest
 

Functions

def _process_wait_with_timeout (process, timeout=WAIT_CHECK_DEFAULT_TIMEOUT)
 
def cleanup_processes ()
 
def interrupt_and_wait (process)
 
def wait (process)
 

Variables

list BASE_COMMAND = [INTERPRETER, SCENARIO_FILE]
 
list BASE_SIGTERM_COMMAND = BASE_COMMAND + ['--wait_for_interrupt']
 
 INIT_TIME = datetime.timedelta(seconds=1)
 
 INTERPRETER = sys.executable
 
 level
 
 process_lock = threading.Lock()
 
list processes = []
 
 SCENARIO_FILE
 
 verbosity
 
 WAIT_CHECK_DEFAULT_TIMEOUT = datetime.timedelta(seconds=5)
 
 WAIT_CHECK_INTERVAL = datetime.timedelta(milliseconds=100)
 

Function Documentation

◆ _process_wait_with_timeout()

def tests.unit._exit_test._process_wait_with_timeout (   process,
  timeout = WAIT_CHECK_DEFAULT_TIMEOUT 
)
private
A funciton to mimic 3.3+ only timeout argument in process.wait.

Definition at line 64 of file _exit_test.py.

◆ cleanup_processes()

def tests.unit._exit_test.cleanup_processes ( )

Definition at line 52 of file _exit_test.py.

◆ interrupt_and_wait()

def tests.unit._exit_test.interrupt_and_wait (   process)

Definition at line 73 of file _exit_test.py.

◆ wait()

def tests.unit._exit_test.wait (   process)

Definition at line 81 of file _exit_test.py.

Variable Documentation

◆ BASE_COMMAND

list tests.unit._exit_test.BASE_COMMAND = [INTERPRETER, SCENARIO_FILE]

Definition at line 39 of file _exit_test.py.

◆ BASE_SIGTERM_COMMAND

list tests.unit._exit_test.BASE_SIGTERM_COMMAND = BASE_COMMAND + ['--wait_for_interrupt']

Definition at line 40 of file _exit_test.py.

◆ INIT_TIME

tests.unit._exit_test.INIT_TIME = datetime.timedelta(seconds=1)

Definition at line 42 of file _exit_test.py.

◆ INTERPRETER

tests.unit._exit_test.INTERPRETER = sys.executable

Definition at line 38 of file _exit_test.py.

◆ level

tests.unit._exit_test.level

Definition at line 216 of file _exit_test.py.

◆ process_lock

tests.unit._exit_test.process_lock = threading.Lock()

Definition at line 47 of file _exit_test.py.

◆ processes

list tests.unit._exit_test.processes = []

Definition at line 46 of file _exit_test.py.

◆ SCENARIO_FILE

tests.unit._exit_test.SCENARIO_FILE
Initial value:
1 = os.path.abspath(
2  os.path.join(os.path.dirname(os.path.realpath(__file__)),
3  '_exit_scenarios.py'))

Definition at line 35 of file _exit_test.py.

◆ verbosity

tests.unit._exit_test.verbosity

Definition at line 217 of file _exit_test.py.

◆ WAIT_CHECK_DEFAULT_TIMEOUT

tests.unit._exit_test.WAIT_CHECK_DEFAULT_TIMEOUT = datetime.timedelta(seconds=5)

Definition at line 44 of file _exit_test.py.

◆ WAIT_CHECK_INTERVAL

tests.unit._exit_test.WAIT_CHECK_INTERVAL = datetime.timedelta(milliseconds=100)

Definition at line 43 of file _exit_test.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:53