-
Notifications
You must be signed in to change notification settings - Fork 22
Testing the utils #3
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
Conversation
AUTHORS.rst
Outdated
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 different format?
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.
I wanted to ask if I can do this for all? It just renders nicer.
I don't mind switching it back or changing all. you just got to it before I could ask in a comment 😉
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.
I like that both name and link are explicitly rendered which is used for PDF docs, etc... I dont have any strong preference either way
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.
Thats fine. Let it build, I'll push to follow existing.
Two utils methods were lacking coverage: * get_attr_from_base_classes * get_class_name_with_new_suffix Added a .coveragerc so that coverage would not be tracking coverage of actual tests code. Docstrings were added for future reference.
drf_braces/utils.py
Outdated
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.
example might be nice:
Example:
::
get_class_name_with_new_suffix(FooForm, 'Form', 'NewForm') == 'FooNewForm'
As part of a review: * get_attr_from_base_classes used kwargs to get the `default`. Now `default` is an explicit kwarg, updated docstring and code to reflect this * updated docstring for `get_class_name_with_new_suffix` with an example
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.
If this is acceptable, I think we can merge.
The rest of the comments were about docstrings
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.
fine. still not a fan but ok.

From commit messages: