-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add docs label for markdown files #657
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## main #657 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 2149 2149
Branches 97 97
=========================================
Hits 2149 2149
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Thanks!
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
@@ -66,7 +66,7 @@ async def test_news_only(): | |||
|
|||
|
|||
async def test_docs_no_news(): | |||
filenames = {"path/to/docs1.rst"} | |||
filenames = {"path/to/docs1.rst", "other/path/to/docs2.md"} |
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.
Wouldn't this test pass even without the changes in prtype.py
?
The filenames include an .rst
file, so the docs
label should be applied regardless.
I would suggest to verify this, and possibly turn the list of filenames into a fixture.
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.
Wouldn't this test pass even without the changes in prtype.py?
No. In this case classify_by_filepaths() will quickly return an empty list, walking over filenames (else branch).
Closes #656