diff --git a/tests/test_check_jira_tag.py b/tests/test_check_jira_tag.py index af17e83..5980919 100755 --- a/tests/test_check_jira_tag.py +++ b/tests/test_check_jira_tag.py @@ -58,8 +58,8 @@ def test_missing_jira_url(cli_runner): def test_missing_ini_file(mock_home, cli_runner): - """Assert error on missing '~/.jira.ini' file.""" - result = cli_runner.invoke(main, ["--jira-tag=TAG", "--jira-url=URL", "NO_FILE"]) + """Assert error on missing '~/.jira.ini' file when `--verify`.""" + result = cli_runner.invoke(main, ["--jira-tag=TAG", "--verify", "--jira-url=URL", "NO_FILE"]) assert result.exit_code == 1 assert "No '~/.jira.ini' file found." in result.output @@ -69,7 +69,7 @@ def test_missing_jira_section(mock_home, cli_runner): mock_ini = mock_home / ".jira.ini" mock_ini.write_text("") - result = cli_runner.invoke(main, ["--jira-tag=TAG", "--jira-url=URL", "NO_FILE"]) + result = cli_runner.invoke(main, ["--jira-tag=TAG", "--verify", "--jira-url=URL", "NO_FILE"]) assert result.exit_code == 1 assert "No 'jira' section" in result.output @@ -79,7 +79,7 @@ def test_missing_conf_key(mock_home, cli_runner): mock_ini = mock_home / ".jira.ini" mock_ini.write_text("[jira]\nJIRA_USERNAME=USERNAME\n") - result = cli_runner.invoke(main, ["--jira-tag=TAG", "--jira-url=URL", "NO_FILE"]) + result = cli_runner.invoke(main, ["--jira-tag=TAG", "--verify", "--jira-url=URL", "NO_FILE"]) assert result.exit_code == 1 assert "Missing 'JIRA_TOKEN'" in result.output