Skip to content

Commit

Permalink
Filter hypothesis warning about using .example() in our test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Dygalo committed Oct 9, 2019
1 parent 4f1a6c0 commit 811eaef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_direct_access.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import hypothesis.strategies as st
import pytest

from schemathesis.models import Case, Endpoint

Expand Down Expand Up @@ -31,6 +32,7 @@ def test_endpoint_access(swagger_20):
assert isinstance(swagger_20["/v1/users"]["GET"], Endpoint)


@pytest.mark.filterwarnings("ignore:.*method is good for exploring strategies.*")
def test_as_strategy(swagger_20):
strategy = swagger_20["/v1/users"]["GET"].as_strategy()
assert isinstance(strategy, st.SearchStrategy)
Expand Down

0 comments on commit 811eaef

Please sign in to comment.