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
Test: Add test FilterHelperTest for bear filters #4984
Conversation
tests/parsing/FilterHelperTest.py
Outdated
TEST_BEARS_COUNT, | ||
) | ||
|
||
class FilterHelperTest(unittest.TestCase): |
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.
E302 expected 2 blank lines, found 1
Origin: PycodestyleBear (E302), Section: autopep8
.
This add FilterHelperTest.py as companion to FilterTest.py to test InvalidFilterException. Closes coala#4864
79ddf3d
to
ba7dc87
Compare
Please run your PR at your local machine before push. All the issues reviewed by @gitmate-bot can be automatically solved by running |
@ujjaldas1997 Glimate reviews are already fixed and PR is ready for review. Have a look at the tests. :) |
Only one issue is there though |
There are no such warnings from gitmate now. I already fixed it. |
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.
Looks good
retval, stdout, stderr = execute_coala( | ||
coala.main, 'coala', '-B', '--filter-by', 'some_filter', | ||
'abc') | ||
self.assertRaises(InvalidFilterException) |
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.
that's not how this function works ;)
Anyway:
The issues states not to execute coala as it's too high-level for a unit-test. Please directly invoke FilterHelper
methods.
@pradeepgangwar why closing? ;) |
@Makman2 I need some time, actually i got busy with my daily schedule these days. I will update here if there is any progress. |
Please tell us earlier and don't close PRs :D However, if you're too long away we are going to reassign the issue ;) |
Incomplete and issue was reassigned and is now looking good at #5313 |
This add FilterHelperTest.py as companion to FilterTest.py to test
InvalidFilterException.
Closes #4864
Checklist
them.