mirror of
https://github.com/sprockets/sprockets.mixins.correlation.git
synced 2024-11-23 11:19:53 +00:00
PR feedback
This commit is contained in:
parent
4c26834f04
commit
183eb3269e
5 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
|||
-r requires/installation.txt
|
||||
-r requires/testing.txt
|
||||
-e .
|
||||
|
||||
flake8
|
||||
sphinx>=1.2,<2
|
||||
|
|
|
@ -1 +1 @@
|
|||
tornado>=4.0,<6.1
|
||||
tornado>=4.3,<7
|
||||
|
|
|
@ -46,7 +46,7 @@ class HandlerMixin(object):
|
|||
# one exists. We also want to set it in the outgoing response
|
||||
# which the property setter does for us.
|
||||
maybe_future = super(HandlerMixin, self).prepare()
|
||||
if concurrent.is_future(maybe_future): # pragma: nocover
|
||||
if concurrent.is_future(maybe_future):
|
||||
await maybe_future
|
||||
|
||||
correlation_id = self.get_request_header(self.__header_name, None)
|
||||
|
|
4
tests.py
4
tests.py
|
@ -57,11 +57,11 @@ class CorrelationIDLoggerTests(testing.AsyncHTTPTestCase):
|
|||
self.patcher = unittest.mock.patch(
|
||||
'sprockets.mixins.correlation.mixins.log.access_log')
|
||||
self.access_logger = self.patcher.start()
|
||||
super(CorrelationIDLoggerTests, self).setUp()
|
||||
super().setUp()
|
||||
|
||||
def tearDown(self):
|
||||
self.patcher.stop()
|
||||
super(CorrelationIDLoggerTests, self).tearDown()
|
||||
super().tearDown()
|
||||
|
||||
def test_lt_400_logs_info(self):
|
||||
for status in (200, 202):
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -22,4 +22,4 @@ deps =
|
|||
[testenv:tornado6]
|
||||
deps =
|
||||
-r requires/testing.txt
|
||||
tornado>=6,<6.1
|
||||
tornado>=6,<7
|
||||
|
|
Loading…
Reference in a new issue