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 check to enforce that all subclasses of BaseHandler end with "Handler" #5466
Comments
Just one question, should this test be in 'base_test.py'? |
Hi Rishav! This should be placed in the pre_commit_linter.py script. The
list of files modified is already available in this script. We might
require some processing to implement this check then. Thanks!
…On Sun, Sep 9, 2018, 5:41 PM Rishav Chakraborty ***@***.***> wrote:
Just one question, should this test be in 'base_test.py'?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5466 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AXrQua6jJSW1ZMpbHjAeo85vaWynqYXtks5uZQV3gaJpZM4V0TCN>
.
|
What should I do about those files which are inherited from the BaseHandler but does not end with the word? For example the classes in controllers/pages.py |
You'll probably need to change them (the main code) to follow the new lint requirement. When changing main code, make sure the automated tests still pass and that you test manually that everything still works properly. |
Is this issue open ? |
@anubhavsinha98 I am currently working on it |
okay @lilithxxx |
@lilithxxx, any update on this? |
…th "Handler" or "Page" (#5878) * Added line breaks * Moved test to base_test * Modified code * Modified code * Changed condition * Modified render_downloadable test * Check for class name test * Fixed test case * Remove conflicts * Change condition of html response * Made lint changes
All subclasses of BaseHandler (basically, all controllers) should end with "Handler". This issue keeps a track of the check which will enforce it.
The text was updated successfully, but these errors were encountered: