From 3107ad67dfc210b02c869192cae17a3baea4e249 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 18:07:13 +0000 Subject: [PATCH 1/2] Initial plan From c1f888c31960e7ad9db30ee920a0038cfca71d2a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 18:09:05 +0000 Subject: [PATCH 2/2] Update test to assert specific click.UsageError with message verification Co-authored-by: MrLYC <6391488+MrLYC@users.noreply.github.com> --- tests/test_main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_main.py b/tests/test_main.py index 0501976..b1ba0fc 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -3,6 +3,7 @@ from pathlib import Path from unittest.mock import MagicMock, patch +import click from click.testing import CliRunner from versifier.__main__ import ( @@ -141,7 +142,7 @@ def test_context_package_manager_none(self) -> None: ) import pytest - with pytest.raises(Exception): + with pytest.raises(click.UsageError, match="No uv.lock or poetry.lock found"): ctx.package_manager finally: os.chdir(original_dir)