diff --git a/tests/test_command.py b/tests/test_command.py index 7d99426..302e1f4 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -50,7 +50,9 @@ def test_can_set_root_dir_argument(): def test_can_execute_check_done_command_and_get_warnings(caplog): exit_code = check_done_command([]) assert exit_code == 0 - + debug_envar = os.environ["CHECK_DONE_GITHUB_PROJECT_STATUS_NAME_TO_CHECK"] + print(debug_envar) + print(caplog.text) check_done_warning_messages = len(caplog.messages) assert check_done_warning_messages >= 1 @@ -64,6 +66,9 @@ def test_can_check_done_demo_project(caplog): exit_code = check_done_command([]) assert exit_code == 0 + debug_envar = os.environ["CHECK_DONE_GITHUB_PROJECT_STATUS_NAME_TO_CHECK"] + print(debug_envar) + print(caplog.text) check_done_warning_messages = len(caplog.messages) assert check_done_warning_messages >= 1 @@ -149,10 +154,13 @@ def test_can_log_info_message_if_selected_project_status_is_empty(caplog): with caplog.at_level(logging.INFO): envvar_name = "CHECK_DONE_GITHUB_PROJECT_STATUS_NAME_TO_CHECK" original_envar_value = os.environ[envvar_name] + print(os.environ[envvar_name]) empty_project_status_name_in_check_done_demo_project = "In progress" os.environ[envvar_name] = empty_project_status_name_in_check_done_demo_project + print(os.environ[envvar_name]) check_done_command([]) os.environ[envvar_name] = original_envar_value + print(os.environ[envvar_name]) assert "Nothing to check. Project has no items in the selected project status." in caplog.messages[1] @@ -164,8 +172,11 @@ def test_can_log_info_message_if_no_warnings_were_found_for_checked_project_item with caplog.at_level(logging.INFO): envvar_name = "CHECK_DONE_GITHUB_PROJECT_STATUS_NAME_TO_CHECK" original_envar_value = os.environ[envvar_name] + print(os.environ[envvar_name]) project_status_name_in_check_done_demo_project_with_only_correct_issues = "Archived" os.environ[envvar_name] = project_status_name_in_check_done_demo_project_with_only_correct_issues + print(os.environ[envvar_name]) check_done_command([]) os.environ[envvar_name] = original_envar_value + print(os.environ[envvar_name]) assert "All project items are correct" in caplog.messages[1]