fix: generate forgot-password link in hash routing format and update …#14
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
tests/test_password_reset.py (1)
353-353: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAssert the token-bearing URL, not only its prefix.
Stub or capture the generated plain token and assert the exact
/#/reset-password/<token>URL appears in the email HTML. The current assertion would pass for an empty or malformed token.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tests/test_password_reset.py` at line 353, Update the password-reset email test around the token generation and email HTML assertion to stub or capture the generated plain token, then assert the exact /#/reset-password/<token> URL appears in call_kwargs["html"] instead of checking only the URL prefix.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@tests/test_password_reset.py`:
- Line 353: Update the password-reset email test around the token generation and
email HTML assertion to stub or capture the generated plain token, then assert
the exact /#/reset-password/<token> URL appears in call_kwargs["html"] instead
of checking only the URL prefix.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 8b6fd964-d22c-4132-bbf6-6e9732a84245
📒 Files selected for processing (2)
src/ai_trading_discipline_copilot/routers/auth.pytests/test_password_reset.py
…assertions
Summary by CodeRabbit