-
Couldn't load subscription status.
- Fork 654
Test load_config() #1396
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
Test load_config() #1396
Conversation
|
I marked this as a draft since I am not sure this is the proper way of contributing. Let me know if any changes are needed. Thanks. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #1396 +/- ##
===========================================
- Coverage 66.19% 65.26% -0.94%
===========================================
Files 86 81 -5
Lines 9068 8767 -301
===========================================
- Hits 6003 5722 -281
+ Misses 3065 3045 -20 |
setup.cfg
Outdated
| @@ -1,5 +1,5 @@ | |||
| [metadata] | |||
| license_file = LICENSE.txt | |||
| license_files = LICENSE.txt | |||
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.
Why?
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.
It is explained in the commit message which is not immediately seen in GitHub, I can split it into a separate PR, just like the other unrelated patches.
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.
It is good to keep PR’s within the narrowest scope as practical. Perhaps a quote by Einstein somewhat applies; “Everything should be made as simple as possible, but not simpler.” The review process is simpler (and often can occur quicker) if changes fall within a scope described in the related issue.
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, I removed the other patches and will post them separately.
Your contribution workflow looks good. Once you think this is ready to go in, mark it as ready for review. You’ll need to format your code with the |
eb94542 to
7cc0682
Compare
Also do not skip the test since there will always be an interface (previously set globally and now prepared in setUp function.
Testing with the same interface values would not show possible issues in case there were any.
Add tests for load_config with contexts and environment variables. Closes hardbyte#345 Signed-off-by: Martin Kletzander <nert.pinx@gmail.com>
7cc0682 to
0446cd1
Compare
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 for adding these tests (and your contributions across other PRs)
This reverts commit a144f25.
Few patches for things I found when trying to add tests for
load_config().Closes #345