Bump up Hypothesis deadline globally
This commit is contained in:
parent
1a1a6ebf79
commit
7226750363
@ -42,8 +42,8 @@ import qutebrowser.app # To register commands
|
|||||||
|
|
||||||
|
|
||||||
# Set hypothesis settings
|
# Set hypothesis settings
|
||||||
hypothesis.settings.register_profile('default',
|
hypothesis.settings.register_profile(
|
||||||
hypothesis.settings(strict=True))
|
'default', hypothesis.settings(strict=True, deadline=400))
|
||||||
hypothesis.settings.load_profile('default')
|
hypothesis.settings.load_profile('default')
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@ from qutebrowser.browser.webkit import http, rfc6266
|
|||||||
'attachment; filename*={}',
|
'attachment; filename*={}',
|
||||||
])
|
])
|
||||||
@hypothesis.given(strategies.text(alphabet=[chr(x) for x in range(255)]))
|
@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):
|
def test_parse_content_disposition(caplog, template, stubs, s):
|
||||||
"""Test parsing headers based on templates which hypothesis completes."""
|
"""Test parsing headers based on templates which hypothesis completes."""
|
||||||
header = template.format(s)
|
header = template.format(s)
|
||||||
@ -55,7 +54,6 @@ def test_content_disposition_directly(s):
|
|||||||
|
|
||||||
|
|
||||||
@hypothesis.given(strategies.text())
|
@hypothesis.given(strategies.text())
|
||||||
@hypothesis.settings(deadline=400)
|
|
||||||
def test_parse_content_type(stubs, s):
|
def test_parse_content_type(stubs, s):
|
||||||
reply = stubs.FakeNetworkReply(headers={'Content-Type': s})
|
reply = stubs.FakeNetworkReply(headers={'Content-Type': s})
|
||||||
http.parse_content_type(reply)
|
http.parse_content_type(reply)
|
||||||
|
Loading…
Reference in New Issue
Block a user