-
Notifications
You must be signed in to change notification settings - Fork 122
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
Strip down integer ticket numbers #278
Strip down integer ticket numbers #278
Conversation
Codecov Report
@@ Coverage Diff @@
## master #278 +/- ##
==========================================
+ Coverage 95.32% 95.37% +0.04%
==========================================
Files 20 20
Lines 1027 1038 +11
Branches 104 104
==========================================
+ Hits 979 990 +11
Misses 27 27
Partials 21 21
Continue to review full report at Codecov.
|
@@ -66,3 +66,15 @@ def test_dots_in_ticket_name_and_counter(self): | |||
parse_newfragment_basename("baz.1.2.feature.3", ["feature"]), | |||
("2", "feature", 3), | |||
) | |||
|
|||
def test_strip(self): | |||
self.assertEqual( |
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.
Minor comment
would be nice to have a docstring explaing the scope/purpose/expectation of this test :)
This can serve as the developer documentation for this feature.
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.
"""Leading spaces and subsequent leading zeros are stripped
when parsing newsfragment names into ticket numbers etc.
"""
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.
Great work. Thanks!
Fixes #126 .