-
Notifications
You must be signed in to change notification settings - Fork 13
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
Added support for SSL connection & username auth. #189
Conversation
src/crate/crash/command.py
Outdated
@@ -472,6 +494,34 @@ def main(): | |||
cmd.exit() | |||
sys.exit(cmd.exit_code) | |||
|
|||
def test_main(): |
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.
please don't add test related code in this module
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.
@mfussenegger any suggestion how to test then?
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.
Would it be possible to extract some smaller methods from main()
- which are then suitable to be called from a test?
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.
ok, makes sense, I'll try it
I guess the coverage decrease is a false positive. |
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.
Are there any docs that should be updated?
src/crate/crash/command.py
Outdated
@@ -472,6 +475,24 @@ def main(): | |||
cmd.exit() | |||
sys.exit(cmd.exit_code) | |||
|
|||
def createCmd(crate_hosts, error_trace, output_writer, is_tty, args): |
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.
please use snake_case and prefix with _
(also in the tests)
Codecov Report
@@ Coverage Diff @@
## master #189 +/- ##
=========================================
+ Coverage 76.28% 82.1% +5.82%
=========================================
Files 16 16
Lines 2096 1906 -190
=========================================
- Hits 1599 1565 -34
+ Misses 497 341 -156
Continue to review full report at Codecov.
|
@chaudum the actual functionality of the params is tested in crate-python. |
No description provided.