Merge "Assert style fix"

This commit is contained in:
Jenkins 2017-10-03 20:40:28 +00:00 committed by Gerrit Code Review
commit 2c9fbd8c00
2 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class JSONErrorHookTestCase(base.BaseTestCase):
exc = mock.Mock(spec=webob.exc.HTTPRedirection)
hook = app.JSONErrorHook()
result = hook.on_error(mock.Mock(), exc)
self.assertEqual(result, None)
self.assertIsNone(result)
@mock.patch.object(webob, 'Response')
def test_on_error_with_other_exceptions(self, response):

View File

@ -70,6 +70,7 @@ commands = python setup.py build_sphinx {posargs}
# E125 continuation line does not distinguish itself from next logical line
# H404 multi line docstring should start with a summary
ignore = E125,H404
enable-extensions = H203
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build