Skip to content

Fixing Some Nits in Tests #39

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

Merged
merged 4 commits into from
Jun 26, 2017
Merged

Fixing Some Nits in Tests #39

merged 4 commits into from
Jun 26, 2017

Conversation

hiranya911
Copy link
Contributor

  • Added integration/ directory to linter
  • Skipping unused-argument check for tests. This condition occurs far too often in tests (when setting up pytest fixtures)
  • Updated a db integration test case to check for multiple updates.

@hiranya911 hiranya911 requested a review from wilhuff June 26, 2017 17:40
@hiranya911 hiranya911 assigned wilhuff and unassigned bjornick Jun 26, 2017
@@ -81,7 +81,7 @@ class TestApplicationDefault(object):

@pytest.mark.parametrize('app_default', [testutils.resource_filename('service_account.json')],
indirect=True)
def test_init(self, app_default): # pylint: disable=unused-argument
def test_init(self, app_default):
Copy link

Choose a reason for hiding this comment

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

You can suppress these warnings without needing to disable this check for all methods in tests:

For example, here you can

def test_init(self, app_default):
    del app_default

If that's just too annoying, carry on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@hiranya911 hiranya911 assigned hiranya911 and unassigned wilhuff Jun 26, 2017
Copy link

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM

@hiranya911 hiranya911 merged commit 35a6174 into master Jun 26, 2017
@hiranya911 hiranya911 deleted the hkj-test-cleanup branch June 26, 2017 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants