Fix: log dropped inline comments - #2876
Conversation
PR Summary by QodoLog invalid inline comments dropped by GitHub fallback
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Unrelated file-wide reformatting
|
|
Code review by qodo was updated up to the latest commit b44eed3 |
|
Code review by qodo was updated up to the latest commit 6cc4ec0 |
| @@ -0,0 +1,67 @@ | |||
| from unittest.mock import MagicMock, patch | |||
|
|
|||
| import pytest | |||
|
|
||
| import pytest | ||
|
|
||
| from pr_agent.config_loader import get_settings |
IsmaelMartinez
left a comment
There was a problem hiding this comment.
Approving. Both tests assert on the rendered message rather than just the code path, so a broken format string could not slip through, and both go red on revert against today's main.
You should know there is an overlap neither page mentions: #2875 opened two hours before yours against the same issue and the same function. Yours is the one going in because it is correct and tested; I have explained why on that one.
Thanks for the tests.
Fixes #2874\n\nLogs paths of invalid inline comments that are dropped because they could not be converted to a one-line comment or because try_fix_invalid_inline_comments is off.