-
Notifications
You must be signed in to change notification settings - Fork 37
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
chore(test): Get only first output from create func #321
chore(test): Get only first output from create func #321
Conversation
@@ -99,7 +99,7 @@ def create_device(config_file, org_id, project_id, device_name, userdata): | |||
f"Creating device {cfg['device']['name']} with config {pretty}") | |||
|
|||
welder = Welder(token, cfg) | |||
ip = welder.create_all() | |||
ip = welder.create_all()[0] |
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.
Can the call to welder.create_all()
fail? Although this question has no bearing on the change.
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.
yes it can, but it has no impact on what that value is used for, as i have neglected to handle any errors properly and they just panic 😜
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.
What would
Codecov Report
@@ Coverage Diff @@
## main #321 +/- ##
==========================================
- Coverage 58.07% 57.95% -0.12%
==========================================
Files 51 51
Lines 2509 2509
==========================================
- Hits 1457 1454 -3
- Misses 937 938 +1
- Partials 115 117 +2
Continue to review full report at Codecov.
|
Small thing I did not notice at the time.