-
Notifications
You must be signed in to change notification settings - Fork 27
Fix ably-python version regexp in test_request_headers test
#593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It didn't account that ably-python versions can have multiple digits for major/minor/patch parts
WalkthroughThis pull request updates the regular expression used to validate the format of the Changes
Suggested reviewers
Poem
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
test/ably/rest/resthttp_test.py (1)
195-195: Good update to the regex pattern for version validation.The change from
\dto\d+properly allows for multi-digit version components in the ably-python version string, which aligns with semantic versioning standards. This fixes the issue where version numbers like "1.10.0" or "2.3.11" would fail validation with the previous pattern.For consistency, consider also updating the Python version pattern from
python\/\d.\d+.\d+topython\/\d+.\d+.\d+to handle the case when Python reaches version 10 or higher.- expr = r"^ably-python\/\d+.\d+.\d+(-beta\.\d+)? python\/\d.\d+.\d+$" + expr = r"^ably-python\/\d+.\d+.\d+(-beta\.\d+)? python\/\d+.\d+.\d+$"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
test/ably/rest/resthttp_test.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (6)
- GitHub Check: check (3.13)
- GitHub Check: check (3.12)
- GitHub Check: check (3.11)
- GitHub Check: check (3.10)
- GitHub Check: check (3.9)
- GitHub Check: check (3.8)
sacOO7
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ( as long as CI is green and all tests passes )
It didn't account that ably-python versions can have multiple digits for major/minor/patch parts
Summary by CodeRabbit