Module Expr Str Import alias Import alias Import alias ImportFrom alias Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad For NameStore ListLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam defaults vararg body ImportFrom alias Assign NameStore Call NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore Num If UnaryOpNot NameLoad body Import alias TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Num Assign NameStore ListLoad Str Str BinOpMod Str NameLoad orelse Assign NameStore Call NameLoad Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str Str orelse For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str Expr Call NameLoad Expr Call NameLoad NameLoad NameLoad
N/A N/A 
Custom test runner

If args or options, we run the testsuite as quickly as possible.

If args but no options, we default to using the spec plugin and aborting on
first error/failure.

If options, we ignore defaults and pass options onto Nose.

Examples:

Run all tests (as fast as possible)
$ ./runtests.py

Run all unit tests (using spec output)
$ ./runtests.py tests/unit

Run all checkout unit tests (using spec output)
$ ./runtests.py tests/unit/checkout

Run all tests relating to shipping
$ ./runtests.py --attr=shipping

Re-run failing tests (needs to be run twice to first build the index)
$ ./runtests.py ... --failed

Drop into pdb when a test fails
$ ./runtests.py ... --pdb-failures
 N/A sys N/A logging N/A warnings tests.config configure N/A N/A N/A logging disable N/A logging CRITICAL N/A N/A N/A warnings simplefilter default N/A N/A N/A warnings filterwarnings error category DeprecationWarning N/A category N/A PendingDeprecationWarning UserWarning ImportWarning N/A N/A N/A N/A warnings filterwarnings ignore category category run_tests N/A N/A verbosity N/A test_args N/A django_nose NoseTestSuiteRunner N/A test_runner N/A NoseTestSuiteRunner verbosity verbosity N/A N/A test_args N/A N/A test_args N/A tests N/A num_failures N/A N/A test_runner run_tests test_args N/A num_failures N/A N/A N/A N/A sys exit num_failures N/A N/A N/A __name__ __main__ N/A N/A args N/A N/A sys argv N/A 1 N/A verbosity 1 N/A N/A args N/A N/A multiprocessing N/A N/A N/A num_cores N/A N/A multiprocessing cpu_count N/A N/A N/A NotImplementedError N/A N/A num_cores 4 N/A args N/A --nocapture --stop N/A --processes=%s num_cores N/A N/A has_options N/A any N/A map N/A N/A N/A x N/A N/A N/A x startswith -- args N/A N/A has_options N/A N/A N/A N/A args extend N/A --nocapture --stop N/A N/A arg args N/A N/A N/A N/A arg startswith --verbosity N/A N/A verbosity N/A int N/A arg N/A -1 N/A args N/A arg N/A arg args N/A N/A N/A arg startswith - N/A N/A configure N/A N/A run_tests verbosity args