-
Notifications
You must be signed in to change notification settings - Fork 124
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 title_format tests and drop a line #299
Add title_format tests and drop a line #299
Conversation
Codecov Report
@@ Coverage Diff @@
## master #299 +/- ##
==========================================
+ Coverage 95.86% 96.15% +0.28%
==========================================
Files 20 20
Lines 1089 1117 +28
Branches 104 104
==========================================
+ Hits 1044 1074 +30
+ Misses 25 24 -1
+ Partials 20 19 -1
Continue to review full report at Codecov.
|
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.
Looks good.
I am not sure what is the scope of this PR and why we need it.
I would argue that we don't need to support false
so don't add extra test for it... but at the same time we don't need to add extra logic for it.
I would say that only havingtest_title_format_non_empty
is enough for this PR.
Thanks!
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.
I see this in the docs
title_format = "{name} {version} ({project_date})" # or false if template includes title
And now I am confused...
I think that we should change README as part of this PR to make it clear how title_format should be used and what is the purpose of setting it to false.
Explanation was certainly lacking. This followed from #164 where it was reported that My understanding is that if you specify a template which includes the title then you should specify After we agree on that I'll handle the rest of the details. |
OK. I guess that we should have a separate section to explain each option... and not show them as an example with a brief comment. So, my understanding is:
And yes. the docstring for each test could be verbose and explain each tests case and what functionality is tested. |
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.
With better documentation this can be merged.
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
Draft only -- nothing has been written. | ||
What is seen below is what would be written. | ||
|
||
FooBarBaz 7.8.9 (20-01-2001) |
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.
I missed this when reporting the fix worked for me... This is well incorrect, the title should not appear here as per title_format = false
above?
No description provided.