Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

pradeepgangwar
Copy link
Contributor

This add FilterHelperTest.py as companion to FilterTest.py to test
InvalidFilterException.

Closes #4864

Checklist

  • I read the commit guidelines and I've followed
    them.
  • I ran coala over my code locally.

TEST_BEARS_COUNT,
)

class FilterHelperTest(unittest.TestCase):
Copy link
Collaborator

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
@ujjaldas1997
Copy link
Contributor

Please run your PR at your local machine before push. All the issues reviewed by @gitmate-bot can be automatically solved by running coala. You can refer to link for more details.

@pradeepgangwar
Copy link
Contributor Author

pradeepgangwar commented Dec 18, 2017

@ujjaldas1997 Glimate reviews are already fixed and PR is ready for review. Have a look at the tests. :)

@ujjaldas1997
Copy link
Contributor

Only one issue is there though no newline at end of file. Other portions looks fine for PEP8.

@pradeepgangwar
Copy link
Contributor Author

There are no such warnings from gitmate now. I already fixed it.

Copy link
Member

@aashutoshrathi aashutoshrathi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@coala coala deleted a comment from gitmate-bot Jan 1, 2018
@coala coala deleted a comment from gitmate-bot Jan 1, 2018
@coala coala deleted a comment from gitmate-bot Jan 1, 2018
@coala coala deleted a comment from gitmate-bot Jan 1, 2018
retval, stdout, stderr = execute_coala(
coala.main, 'coala', '-B', '--filter-by', 'some_filter',
'abc')
self.assertRaises(InvalidFilterException)
Copy link
Member

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.

@Makman2
Copy link
Member

Makman2 commented Jan 11, 2018

@pradeepgangwar why closing? ;)

@pradeepgangwar
Copy link
Contributor Author

pradeepgangwar commented Jan 11, 2018

@Makman2 I need some time, actually i got busy with my daily schedule these days. I will update here if there is any progress.

@Makman2
Copy link
Member

Makman2 commented Jan 15, 2018

Please tell us earlier and don't close PRs :D

However, if you're too long away we are going to reassign the issue ;)

@jayvdb
Copy link
Member

jayvdb commented Apr 7, 2018

Incomplete and issue was reassigned and is now looking good at #5313

@jayvdb jayvdb closed this Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

7 participants