-
Notifications
You must be signed in to change notification settings - Fork 5
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
Provide an option to store error responses in CLI #47
Provide an option to store error responses in CLI #47
Conversation
- Make initial change to write error response as well when --include-all-responses flag is passed. - zytedata#38
In addition to those points, could you look into including a test for the change? |
- Improvement by PR suggestion - Add tests for the current changes. - zytedata#38
- Refactor the test using mocks - Add dependency - zytedata#38
- Remove RequestError import - zytedata#38
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #47 +/- ##
===========================================
+ Coverage 38.63% 53.88% +15.25%
===========================================
Files 10 10
Lines 365 373 +8
Branches 53 55 +2
===========================================
+ Hits 141 201 +60
+ Misses 223 167 -56
- Partials 1 5 +4
|
- address the comments in PR - zytedata#38
def write_output(content): | ||
json.dump(content, out, ensure_ascii=False) | ||
out.write("\n") | ||
out.flush() | ||
pbar.update() |
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.
TIL An inner function can depend on an outer scope variable as long as it is define before the inner function is called, rather than before the inner function is defined.
- address the comments in PR - zytedata#38
- change the domain to forbidden.example - zytedata#38
- change the domain to forbidden.example - zytedata#38
Make initial change to write error response as well when --store-errors flag is passed.
Resolves Provide an option to store error responses in CLI #38
Not taking care of errors belong to python 3.7 as its support will be removed soon.