Skip to content

Commit

Permalink
Merge pull request #5334 from hypothesis/fix-fuzz-parser-tests
Browse files Browse the repository at this point in the history
Reduce number of examples for fuzz tests to 30
  • Loading branch information
robertknight committed Oct 3, 2018
2 parents cf75f80 + e97695f commit ce9c163
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/h/search/parser_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pytest
from hypothesis import strategies as st
from hypothesis import given
from hypothesis import given, settings
from webob.multidict import MultiDict

from h.search import parser
Expand Down Expand Up @@ -98,6 +98,7 @@ def test_parse_with_odd_quotes_combinations(query_in, query_out):


@given(st.text())
@settings(max_examples=30)
@pytest.mark.fuzz
def test_parse_always_return_a_multidict(text):
"""Given any string input, output should always be a MultiDict."""
Expand All @@ -114,6 +115,7 @@ def test_parse_always_return_a_multidict(text):

@given(kw=st.sampled_from(parser.named_fields),
value=nonwhitespace_text)
@settings(max_examples=30)
@pytest.mark.fuzz
def test_parse_with_any_nonwhitespace_text(kw, value):
result = parser.parse(kw + ':' + value)
Expand Down

0 comments on commit ce9c163

Please sign in to comment.