Bump up Hypothesis deadline globally

This commit is contained in:
Florian Bruhin 2017-09-19 15:08:56 +02:00
parent 1a1a6ebf79
commit 7226750363
2 changed files with 2 additions and 4 deletions

View File

@ -42,8 +42,8 @@ import qutebrowser.app # To register commands
# Set hypothesis settings
hypothesis.settings.register_profile('default',
hypothesis.settings(strict=True))
hypothesis.settings.register_profile(
'default', hypothesis.settings(strict=True, deadline=400))
hypothesis.settings.load_profile('default')

View File

@ -35,7 +35,6 @@ from qutebrowser.browser.webkit import http, rfc6266
'attachment; filename*={}',
])
@hypothesis.given(strategies.text(alphabet=[chr(x) for x in range(255)]))
@hypothesis.settings(deadline=400)
def test_parse_content_disposition(caplog, template, stubs, s):
"""Test parsing headers based on templates which hypothesis completes."""
header = template.format(s)
@ -55,7 +54,6 @@ def test_content_disposition_directly(s):
@hypothesis.given(strategies.text())
@hypothesis.settings(deadline=400)
def test_parse_content_type(stubs, s):
reply = stubs.FakeNetworkReply(headers={'Content-Type': s})
http.parse_content_type(reply)