fix: Update failing Q CLI unit tests due to working directory validation#94
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #94 +/- ##
=======================================
Coverage ? 84.01%
=======================================
Files ? 38
Lines ? 2209
Branches ? 0
=======================================
Hits ? 1856
Misses ? 353
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
haofeif
left a comment
There was a problem hiding this comment.
@patricka3125 LGTM — the root cause (pytest tmp_path lives under /private/var on macOS, which fails the working directory home-prefix validation) is correctly diagnosed and the fix is clean.
One suggestion: add a session-scoped cleanup fixture for orphaned .cao_test_tmp_* dirs in case test runners get killed before yield cleanup runs. See inline comment. Not a blocker — happy to approve with minor suggestion.
|
@haofeif added the session cleanup fixture. Please lmk if anything else needed |
haofeif
left a comment
There was a problem hiding this comment.
@patricka3125 LGTM, thanks again for your great contribution!
…ion (awslabs#94) * fix: Fix regex to catch Claude Code Processing spinner (awslabs#2) * Add custom agent store * fix: Fix failing Q-CLI working directory tests * unstage custom change * fix formatting * add pre-session cleanup fixture --------- Co-authored-by: haofeif <56006724+haofeif@users.noreply.github.com>
Description of changes:
Fix failing Q CLI tests that were introduced in working directory validation logic introduced in commit 2b1128d