Repository navigation
fix: "already activated" message but shell is not active - #57
kenttonino wants to merge 6 commits into
Conversation
|
Thanks for the feedback @StantonMatt. Will add additional test case. |
|
Hello @StantonMatt. Done adding the test case for stale Also tested on my machine: ProductName: macOS
ProductVersion: 26.5.1
BuildVersion: 25F80
|
yangfan-yf-yf
left a comment
There was a problem hiding this comment.
I reviewed the current head 96ebc6b independently. The new regression test now directly covers the stale state: with POETRY_ACTIVE=1 and no VIRTUAL_ENV, the command invokes Shell.activate() instead of reporting an already-active environment. The existing active-environment test explicitly provides VIRTUAL_ENV and retains the early-return behavior.
Local verification on Windows with Python 3.12:
python -m pytest -q— 18 passedgit diff --check
The GitHub Ubuntu, macOS, and Windows matrix is also green on the current head. The local Ruff and MyPy commands still report findings in unchanged shell.py and tests/conftest.py, respectively; they are outside this PR's diff.
|
Thanks @yangfan-yf-yf. Will take a look on this one. However, the fix will be on a separate PR.
|

Summary
Changes
Test Plan
Test 1Test 2