Module Import alias Import alias Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias TryExcept body ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Print Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd ListLoad Str NameLoad Print IfExp NameLoad Str Str Return NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Assign NameStore ListLoad orelse Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad NameLoad
N/A N/A argparse N/A sys N/A os N/A subprocess N/A pytest N/A N/A N/A N/A sys path append N/A N/A N/A os path dirname __file__ exit_on_failure N/A N/A ret message N/A None N/A N/A ret N/A N/A N/A N/A sys exit ret N/A run_django_tests N/A N/A args N/A N/A N/A This will only work with a later version of Django (1.8?) django.core.exceptions ImproperlyConfigured N/A N/A django.test.utils get_runner tests.conftest pytest_configure N/A settings N/A pytest_configure N/A TestRunner N/A get_runner settings N/A test_runner N/A TestRunner N/A N/A exit_on_failure N/A N/A test_runner run_tests args N/A N/A N/A ImproperlyConfigured N/A N/A N/A N/A sys exit TEST #FAIL: The --django arg has only been tested with 1.8 N/A flake8_main N/A N/A args N/A N/A N/A Flake8 code linting ... N/A ret N/A N/A subprocess call N/A N/A flake8 args N/A N/A ret Flake8 failed Flake8 passed N/A ret N/A N/A N/A __name__ __main__ N/A N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument extra_args metavar args type str nargs * help Additional arguments to pass to the test runner N/A N/A N/A parser add_argument --django help Use Django test runner (>=1.8). Additional arguments in the form of tests.test_filename action store_true N/A N/A N/A parser add_argument --no-flake8 help Disable flake8 testing action store_true N/A N/A N/A parser add_argument --flake8-only help Only perform flake8 testing action store_true N/A args N/A N/A parser parse_args N/A extra_args N/A args extra_args N/A N/A N/A args flake8_only N/A N/A N/A args django N/A N/A N/A run_django_tests extra_args N/A extra_args N/A N/A N/A N/A exit_on_failure N/A N/A pytest main extra_args N/A N/A N/A args no_flake8 N/A N/A N/A exit_on_failure N/A flake8_main extra_args