Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults ListLoad ListLoad ListLoad ListLoad NameLoad NameLoad NameLoad Num NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr 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 NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore IfExp AttributeLoad NameLoad attr Num Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Command-line interface utilities to collect and run healthchecks.

.. warning::

   Implementation is not mature, i.e. this part of hospital API may change
   in future releases. That said, it does the job ;)

 N/A argparse N/A os N/A sys N/A unittest hospital.loading HealthCheckLoader N/A HEALTHCHECKS N/A N/A N/A os environ get HEALTHCHECKS N/A HEALTHCHECKS N/A N/A HEALTHCHECKS N/A N/A HEALTHCHECKS split N/A N/A HEALTHCHECKS N/A N/A N/A N/A os path abspath N/A N/A os getcwd base_parser N/A N/A program N/A N/A N/A Return base argument parser. N/A parser N/A N/A argparse ArgumentParser prog program formatter_class N/A argparse ArgumentDefaultsHelpFormatter N/A N/A N/A parser add_argument healthchecks action store nargs * help Space separated list of healthchecks to collect. Each item in the list can be (in order of priority): a dotted-path to importable module or package, or a path to a folder. N/A parser N/A cli_parser N/A N/A program N/A N/A N/A Argument parser factory for hospital.cli. N/A parser N/A base_parser program N/A N/A N/A parser add_argument -v --verbose action store_true default False help Verbose output. N/A parser N/A HealthCheckProgram N/A object N/A N/A Utility to collect and run healthchecks in a shell. __init__ N/A N/A self discover names modules test_cases runner loader result_class verbosity failfast stream N/A N/A N/A N/A N/A None None None 1 False N/A sys stderr N/A N/A N/A self discover discover N/A N/A self names names N/A N/A self modules modules N/A N/A self test_cases test_cases N/A N/A self verbosity verbosity N/A N/A self failfast failfast N/A N/A result_class None N/A N/A N/A self result_class N/A N/A self default_result_class N/A N/A N/A self result_class result_class N/A N/A loader None N/A N/A N/A self loader N/A N/A self default_loader N/A N/A N/A self loader loader N/A N/A runner None N/A N/A N/A self runner N/A N/A self default_runner verbosity N/A self verbosity failfast N/A self failfast result_class N/A self result_class stream stream N/A N/A N/A self runner runner N/A default_loader N/A N/A self N/A N/A N/A N/A HealthCheckLoader N/A default_runner N/A N/A self verbosity failfast result_class stream N/A 1 False N/A unittest TextTestResult N/A sys stderr N/A N/A N/A N/A unittest TextTestRunner verbosity verbosity failfast failfast resultclass result_class stream stream N/A default_result_class N/A N/A self N/A N/A N/A N/A unittest TextTestResult N/A load_tests N/A N/A self N/A N/A N/A Return a test suite. N/A suite N/A N/A N/A self loader suiteClass N/A start_dir N/A self discover N/A N/A N/A N/A suite addTest N/A N/A N/A self loader discover start_dir pattern * N/A N/A self names N/A N/A N/A N/A suite addTest N/A N/A N/A self loader loadTestsFromNames N/A self names N/A suite N/A run_tests N/A N/A self test_suite N/A N/A N/A Return result for test suite. N/A result N/A N/A N/A self runner run test_suite N/A result N/A __call__ N/A N/A self N/A N/A N/A suite N/A N/A self load_tests N/A N/A N/A self run_tests suite N/A N/A main N/A N/A program args stream N/A None None N/A sys stderr N/A N/A Collect and run healthchecks, output to stdout and stderr. N/A parser N/A cli_parser program N/A arguments N/A N/A parser parse_args args N/A N/A arguments healthchecks N/A N/A healthchecks N/A arguments healthchecks N/A N/A healthchecks HEALTHCHECKS N/A verbosity N/A N/A arguments verbose 2 1 N/A app N/A HealthCheckProgram discover healthchecks stream stream verbosity verbosity N/A result N/A app N/A N/A N/A result wasSuccessful N/A N/A N/A N/A sys exit 0 N/A N/A N/A N/A sys exit 1 N/A N/A N/A __name__ __main__ N/A N/A N/A main