def test_check(self): checks = [ "base_url", "root_folder", "logs_folder", "logging_level", "timeout", "retries", "login_retries", "logout_retries", "max_logs", "exclude_subjects_ids", "http_status_port", "http_status_tickrate", "forum_subfolders", "section_indexing_ids", "secure_section_filename", "email", ] mocked_checks = [] for check in checks: route = "vcm.settings.CheckSettings.check_" + check mocked_check = mock.patch(route).start() mocked_checks.append(mocked_check) CheckSettings.check() for mocked_check in mocked_checks: mocked_check.assert_called_once_with() mocked_check.reset_mock()
def setup_vcm(): from vcm.settings import CheckSettings configure_logging() CheckSettings.check()