-
Notifications
You must be signed in to change notification settings - Fork 123
Refactored the help functions. #1478
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
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1478 +/- ##
==========================================
+ Coverage 98.48% 98.60% +0.12%
==========================================
Files 23 23
Lines 4884 4885 +1
==========================================
+ Hits 4810 4817 +7
+ Misses 74 68 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Need to improve HelpApp
class in test_cmd2.py
to better coverage the stuff that is intended.
if not cmds: | ||
return | ||
|
||
if not verbose: |
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.
Nice cleanup. Consider taking it further and doing:
if not verbose:
self.print_topics(header, cmds, 15, 80)
return
And then getting rid of the else:
block and un-indenting the rest of the code to the main level.
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.
Done
No description provided.