-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix test decorator for PyLinter
options
#5195
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
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.
Shouldn't this be done in make_options directly ? It's hard to know you need to do that after calling, we may as well do it all the time automatically ?
The decorator now handles three cases "correctly".
The initial change I did some weeks ago was to allow both 2 and 3, but it turned I should have separated those cases more clearly. Investing more time in 3 and allowing double-loading of checkers during unittests does not seem worth the effort. If we are going to rework the config handling because of |
Pull Request Test Coverage Report for Build 1369823526
π - Coveralls |
The other use is on this decorator. Basically we want to call |
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.
π
Type of Changes
Description
I stumbled upon this while working on #5194.
Without this we don't actually set settings that come from
PyLinter
correctly and therefore we can't test them withget_global_option
.This should pass tests immediately, but if not I will fix them!