Skip to content

Commit 80d280d

Browse files
committed
Remove @pytest.mark.fuzz
This was an unregistered pytest mark, and pytest now emits a warning, which causes our tests to fail, when an unregistered mark is used: pytest-dev/pytest#4935 Rather than registering the mark simply delete all uses of it. All tests that're defined using hypothesis automatically have the `@pytest.mark.hypothesis` mark applied to them so it's not necessary to try to remember to manually apply a custom mark to every test that uses hypothesis: https://hypothesis.readthedocs.io/en/latest/details.html#the-hypothesis-pytest-plugin
1 parent 1ef2545 commit 80d280d

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

tests/h/auth/tokens_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ def test_returns_none_for_malformed_header(self, pyramid_request):
7777
assert result is None
7878

7979
@given(header=st.text())
80-
@pytest.mark.fuzz
8180
def test_returns_none_for_malformed_header_fuzz(self, header, pyramid_request):
8281
assume(not header.startswith("Bearer "))
8382
pyramid_request.headers["Authorization"] = header

tests/h/search/parser_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ def test_parse_with_odd_quotes_combinations(query_in, query_out):
128128

129129
@given(st.text())
130130
@settings(max_examples=30)
131-
@pytest.mark.fuzz
132131
def test_parse_always_return_a_multidict(text):
133132
"""Given any string input, output should always be a MultiDict."""
134133
result = parser.parse(text)
@@ -144,7 +143,6 @@ def test_parse_always_return_a_multidict(text):
144143

145144
@given(kw=st.sampled_from(parser.named_fields), value=nonwhitespace_text)
146145
@settings(max_examples=30)
147-
@pytest.mark.fuzz
148146
def test_parse_with_any_nonwhitespace_text(kw, value):
149147
result = parser.parse(kw + ":" + value)
150148
assert result.get(kw) == value

0 commit comments

Comments
 (0)