raise_for_status(), and Session for efficient http#92
raise_for_status(), and Session for efficient http#92terryyin merged 8 commits intoterryyin:masterfrom
Conversation
|
Thanks for the contribution. But where are the tests? |
So that error messages do not go through silently as translation results - e.g. when hitting usage limits.
3904c22 to
1213c49
Compare
It doesn't really add new functionality to test. Positive function is already tested by the existing tests. |
|
@kxrob the test looks good to me. Very interesting testing approach. I learned something. Thanks. There's some duplicate code, do you want to remove them? Eg. extract them together, and/or, pull it up to the caller? |
.. and less setup overhead for consecutive requests.
Also makes it importable for better inspection
(e.g. as required during CI run)
Also produces a wheel for download (github action artefact)
Is this about the 2 lines for session setup in I added automatic github CI testing - upon pull request pushes and upon push to |
|
thanks for the code and CI. I didn't need to activated github actions. Just merging your pull request activated it. |
No description provided.