test(pep8): Fix errors reported by latest flake8 version
This commit is contained in:
@@ -286,9 +286,9 @@ class API(object):
|
||||
# adds (will cause the last one to win).
|
||||
self._error_handlers.insert(0, (exception, handler))
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Helpers
|
||||
#----------------------------------------------------------------------------
|
||||
# ------------------------------------------------------------------------
|
||||
# Helpers
|
||||
# ------------------------------------------------------------------------
|
||||
|
||||
def _get_responder(self, path, method):
|
||||
"""Searches routes for a matching responder
|
||||
|
||||
@@ -222,9 +222,9 @@ def create_http_method_map(resource, uri_fields, before, after):
|
||||
return method_map
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# -----------------------------------------------------------------------------
|
||||
# Helpers
|
||||
#-----------------------------------------------------------------------------
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
def _wrap_with_hooks(before, after, responder):
|
||||
|
||||
@@ -394,7 +394,7 @@ class Request(object):
|
||||
href=href,
|
||||
href_text=href_text)
|
||||
|
||||
# implicit return None
|
||||
return None
|
||||
|
||||
@property
|
||||
def uri(self):
|
||||
|
||||
@@ -251,7 +251,7 @@ class TestHTTPError(testing.TestBase):
|
||||
body = self.simulate_request('/unicode')
|
||||
|
||||
self.assertTrue(unicode_resource.called)
|
||||
#self.assertEqual(self.srmock.status, falcon.HTTP_792)
|
||||
self.assertEqual(self.srmock.status, falcon.HTTP_792)
|
||||
self.assertEqual(expected_body, body)
|
||||
|
||||
def test_401(self):
|
||||
|
||||
Reference in New Issue
Block a user