Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Assign NameStore Num While CompareLt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore Num orelse Break Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpDiv Call NameLoad AttributeLoad NameLoad attr BinOpPow Num Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad If CompareEq NameLoad Num body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad For NameStore Call NameLoad Num NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr While BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Return Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareIs AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpAnd UnaryOpNot NameLoad UnaryOpNot AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str orelse If CompareNotEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Str If NameLoad body Assign NameStore Call NameLoad GeneratorExp Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str comprehension NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr BinOpAdd NameLoad Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad AttributeLoad NameLoad attr If NameLoad body Raise Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str decorator_list Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore ListComp SubscriptLoad AttributeLoad NameLoad attr Index Str comprehension NameStore NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body While UnaryOpNot AttributeLoad NameLoad attr body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr Call NameLoad GeneratorExp Call NameLoad SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad keyword Str Return With AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return With AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A os N/A contextlib N/A collections N/A datetime N/A json N/A signal N/A traceback N/A time N/A StringIO N/A sys N/A threading N/A Queue qisys ui N/A qisys.command N/A qisys.error N/A qitest.result TestQueue N/A object N/A N/A  A class able to run tests in parallel  __init__ N/A N/A self tests N/A N/A N/A N/A self tests tests N/A N/A self test_logger N/A TestLogger tests N/A N/A self task_queue N/A N/A Queue Queue N/A N/A self launcher None N/A N/A self results N/A N/A collections OrderedDict N/A N/A self ok False N/A N/A self _interrupted False N/A N/A self elapsed_time 0 N/A N/A self _workers N/A list N/A run N/A N/A self num_jobs repeat_until_fail N/A 1 0 N/A N/A  Run all the tests  N/A N/A repeat_until_fail 0 N/A N/A N/A N/A self _run_once num_jobs N/A N/A self ok N/A N/A N/A ui info N/A ui blue :: N/A ui reset Running tests until they fail N/A num_runs 0 N/A N/A num_runs repeat_until_fail N/A N/A N/A N/A ui info N/A ui bold N/A Test run #%i N/A num_runs 1 N/A N/A N/A self _run_once num_jobs N/A N/A N/A ui info N/A N/A self ok N/A N/A num_runs 1 N/A N/A N/A N/A self ok N/A _run_once N/A N/A self num_jobs N/A N/A N/A  Helper for run  N/A N/A N/A self tests N/A N/A N/A N/A ui warning No tests selected for run N/A N/A N/A signal signal N/A signal SIGINT N/A self sigint_handler N/A start N/A N/A N/A datetime datetime now N/A N/A N/A self _run num_jobs num_jobs N/A N/A N/A signal signal N/A signal SIGINT N/A signal default_int_handler N/A end N/A N/A N/A datetime datetime now N/A delta N/A end start N/A N/A self elapsed_time N/A N/A N/A float N/A delta microseconds N/A 10 6 N/A delta seconds N/A N/A N/A self summary N/A N/A self ok N/A _run N/A N/A self num_jobs N/A 1 N/A N/A  Helper function for ._run_once  N/A N/A N/A self launcher N/A N/A N/A N/A ui error test launcher not set, cannot run tests N/A N/A N/A i test N/A enumerate N/A self tests N/A N/A N/A N/A N/A self task_queue put N/A test i N/A N/A num_jobs 1 N/A N/A N/A N/A self test_logger single_job True N/A i N/A range 0 num_jobs N/A N/A worker N/A TestWorker N/A self task_queue i N/A N/A worker launcher N/A self launcher N/A N/A N/A worker launcher worker_index i N/A N/A worker test_logger N/A self test_logger N/A N/A worker results N/A self results N/A N/A N/A N/A self _workers append worker N/A N/A N/A worker start N/A N/A N/A N/A N/A N/A self task_queue empty N/A N/A self _interrupted N/A N/A N/A N/A time sleep 0.1 N/A worker_thread N/A self _workers N/A N/A N/A N/A worker_thread join N/A summary N/A N/A self N/A N/A N/A  Display the tests results.

        Called at the end of self.run()
        Sets ``self.ok``

         N/A N/A N/A self tests N/A N/A N/A self ok False N/A N/A num_tests N/A len N/A self results N/A failures N/A x N/A x N/A N/A N/A self results values N/A N/A x ok False N/A num_failed N/A len failures N/A message N/A Ran %i tests in %is N/A num_tests N/A self elapsed_time N/A N/A N/A ui info message N/A N/A self ok N/A N/A failures N/A N/A self _interrupted N/A N/A self ok N/A N/A N/A N/A ui info N/A ui green All pass. Congrats! N/A N/A N/A num_failed 0 N/A N/A N/A N/A ui error num_failed failures N/A failures N/A N/A max_len N/A max N/A N/A len N/A N/A x test N/A name N/A x failures N/A N/A i failure N/A enumerate failures N/A N/A N/A N/A ui info_count i num_failed N/A ui blue N/A N/A N/A N/A failure test N/A name ljust N/A max_len 2 N/A ui reset N/A failure message N/A N/A N/A self write_failures failures N/A errors N/A x N/A x failures N/A x error N/A errors N/A N/A N/A N/A N/A qisys error Error Unexpected errors occurred during tests N/A sigint_handler N/A N/A self N/A args N/A N/A  Called when user press ctr+c during the test suite

        * Tell qisys.command to kill every process still running
        * Tell the tests_queue that is has been interrupted, and
          stop all the test workers
        * Setup a second sigint for when killing process failed

         double_sigint N/A N/A signum frame N/A N/A N/A N/A N/A sys exit Exiting main program 
 This may leave orphan processes N/A N/A N/A N/A N/A N/A qisys command SIGINT_EVENT set N/A N/A N/A ui warning 
!!! Interrupted by user, stopping every process.
This may take a few seconds N/A N/A self _interrupted True N/A worker N/A self _workers N/A N/A N/A N/A worker stop N/A N/A N/A signal signal N/A signal SIGINT double_sigint N/A write_failures N/A N/A self failures N/A N/A N/A path N/A N/A N/A self launcher project sdk_directory N/A fail_json N/A N/A N/A os path join path .failed.json N/A fail_names N/A N/A N/A x test N/A name N/A x failures N/A N/A open fail_json w fp N/A N/A N/A N/A json dump fail_names fp N/A handle_errors N/A N/A self errors N/A N/A N/A message N/A N/A ui red N/A error errors N/A N/A N/A N/A message extend N/A N/A N/A error test N/A name : N/A N/A N/A message extend N/A error message N/A N/A N/A message append N/A N/A N/A ui error message N/A N/A N/A N/A qisys error Error N/A N/A TestWorker N/A N/A threading Thread N/A N/A  Implementation of a 'worker' thread. It will consume
    the test queue, running the tests and logging the results

     __init__ N/A N/A self queue worker_index N/A N/A N/A N/A N/A N/A super TestWorker self __init__ name N/A TestWorker#%i worker_index N/A N/A self index worker_index N/A N/A self queue queue N/A N/A self launcher None N/A N/A self test_logger None N/A N/A self results N/A dict N/A N/A self _should_stop False N/A stop N/A N/A self N/A N/A N/A  Tell the worker it should stop trying to read items from the queue  N/A N/A self _should_stop True N/A run N/A N/A self N/A N/A N/A N/A N/A self _should_stop N/A N/A N/A N/A N/A test index N/A N/A N/A self queue get_nowait N/A N/A N/A N/A Queue Empty N/A N/A N/A N/A N/A N/A self test_logger on_start test index N/A result None N/A N/A N/A result N/A N/A N/A self launcher launch test N/A N/A N/A Exception N/A e N/A N/A result N/A N/A N/A qitest result TestResult test N/A N/A result ok False N/A N/A result message N/A N/A ui message_for_exception e Python exception during tests N/A N/A result error True N/A N/A N/A self _should_stop N/A N/A N/A N/A N/A self test_logger on_completed test index N/A result message N/A N/A N/A self results N/A N/A test N/A name result N/A N/A N/A N/A self queue task_done N/A N/A TestLogger N/A object N/A N/A  Small class used to print what is going on during
    tests, using a mutex so that outputs are not mixed up

     __init__ N/A N/A self tests N/A N/A N/A N/A self mutex N/A N/A threading Lock N/A N/A self tests tests N/A N/A N/A N/A self max_len N/A max N/A N/A len N/A x N/A name N/A x N/A self tests N/A N/A N/A ValueError N/A N/A N/A self max_len 0 N/A N/A self single_job False N/A on_start N/A N/A self test index N/A N/A N/A  Called when a test starts  N/A N/A self single_job N/A N/A N/A N/A self _info test index N/A end N/A N/A N/A self mutex N/A N/A N/A N/A self _info test index N/A starting ... N/A on_completed N/A N/A self test index message N/A N/A N/A  Called when a test is over  N/A N/A self single_job N/A N/A N/A N/A ui info message N/A N/A N/A self mutex N/A N/A N/A N/A self _info test index message N/A _info N/A N/A self test index message N/A kwargs N/A N/A  Helper method  N/A N/A N/A ui info_count index N/A len N/A self tests N/A ui blue N/A N/A N/A test N/A name ljust N/A N/A self max_len 2 N/A ui reset message kwargs N/A N/A