more mocking in tests

avoids no_patience state leaking into other tests
This commit is contained in:
Min RK
2016-10-07 10:59:32 +02:00
parent 933478bfff
commit ff92ac9dad
2 changed files with 19 additions and 12 deletions

View File

@@ -104,3 +104,12 @@ def mockservice(request, app):
@yield_fixture
def mockservice_url(request, app):
yield _mockservice(request, app, url=True)
@yield_fixture
def no_patience(app):
"""Set slow-spawning timeouts to zero"""
with mock.patch.dict(app.tornado_application.settings,
{'slow_spawn_timeout': 0,
'slow_stop_timeout': 0}):
yield