-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add attrs export to python client #262
Conversation
Codecov Report
@@ Coverage Diff @@
## main #262 +/- ##
==========================================
+ Coverage 51.65% 51.90% +0.24%
==========================================
Files 37 37
Lines 8425 8437 +12
Branches 1794 1800 +6
==========================================
+ Hits 4352 4379 +27
+ Misses 3757 3741 -16
- Partials 316 317 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Overall methodology looks sound, just a few clarifying things
Seems reasonable as a PoC. Let me know once you've got it in a state ready for a full review. |
* attribute -> attribute-comment * attrs_list -> attrs_lines * added a test for a line that wasn't covered * made sure to test multiple attributes being included
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.
LGTM
In testing 3.3.0 with the Python SDK, turns out routes without the attribute defined have values of "None". This PR tweaks the logic from #262 to handle None, and adds a regression test. Also updates the version to so as a follow I can publish the fix.
Add --attribute-comment field to js_client.py and tsd_client.py, like the one added to python_client.py in #262. This is a prerequisite for dropbox/dropbox-sdk-js#891 which adds scopes to the outputted clients for easier reference. Also adds appropriate testing and updates the docstring for the python_client.py, making it more succinct and aligned with the other two.
Update the python client generator, adding a command line arg to export route attributes to the documentation string. This way generated docs can include specified attributes, in our case the scope attribute.
Checklist
General Contributing
Is This a Code Change?
Validation
tox
?