diff --git a/tests/conftest.py b/tests/conftest.py index da034f5f2..5533e20ba 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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') diff --git a/tests/unit/browser/webkit/http/test_http_hypothesis.py b/tests/unit/browser/webkit/http/test_http_hypothesis.py index c0958baca..42290a8f4 100644 --- a/tests/unit/browser/webkit/http/test_http_hypothesis.py +++ b/tests/unit/browser/webkit/http/test_http_hypothesis.py @@ -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)