tests.unit.cli package

Submodules

tests.unit.cli.test_baseline module

class tests.unit.cli.test_baseline.BanditBaselineToolTests(*args, **kwargs)

Bases: testtools.testcase.TestCase

setUp()
classmethod setUpClass()
tearDown()
test_bandit_baseline()
test_init_logger()
test_initialize_dirty_repo()
test_initialize_existing_report_file(*args, **keywargs)
test_initialize_existing_temp_file()
test_initialize_git_command_failure()
test_initialize_no_repo()
test_initialize_with_output_argument(*args, **keywargs)
test_main_git_command_failure()
test_main_no_parent_commit()
test_main_non_repo()
test_main_subprocess_error()

tests.unit.cli.test_config_generator module

class tests.unit.cli.test_config_generator.BanditConfigGeneratorLoggerTests(*args, **kwargs)

Bases: testtools.testcase.TestCase

setUp()
tearDown()
test_init_logger()
class tests.unit.cli.test_config_generator.BanditConfigGeneratorTests(*args, **kwargs)

Bases: testtools.testcase.TestCase

test_get_config_settings()
test_main_show_defaults(*args, **keywargs)
test_parse_args_no_defaults(*args, **keywargs)
test_parse_args_out_file(*args, **keywargs)
test_parse_args_show_defaults(*args, **keywargs)
tests.unit.cli.test_config_generator.gen_config(name)

tests.unit.cli.test_main module

class tests.unit.cli.test_main.BanditCLIMainLoggerTests(*args, **kwargs)

Bases: testtools.testcase.TestCase

setUp()
tearDown()
test_init_logger()
test_init_logger_debug_mode()
class tests.unit.cli.test_main.BanditCLIMainTests(*args, **kwargs)

Bases: testtools.testcase.TestCase

setUp()
tearDown()
test_get_options_from_ini_empty_directory_no_target()
test_get_options_from_ini_no_ini_path_multi_bandit_files()
test_get_options_from_ini_no_ini_path_no_bandit_files()
test_get_options_from_ini_no_ini_path_no_target()
test_init_extensions()
test_log_option_source_arg_val()
test_log_option_source_ini_value()
test_log_option_source_no_values()
test_main_baseline_ioerror(*args, **keywargs)
test_main_config_unopenable(*args, **keywargs)
test_main_exit_with_no_results(*args, **keywargs)
test_main_exit_with_results(*args, **keywargs)
test_main_handle_ini_options(*args, **keywargs)
test_main_invalid_config(*args, **keywargs)
test_main_invalid_output_format(*args, **keywargs)
test_main_profile_not_found(*args, **keywargs)
test_main_unknown_skip_tests(*args, **keywargs)
test_main_unknown_tests(*args, **keywargs)

Module contents