Skip to content

Commit

Permalink
test: Disable deadlines for some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Oct 18, 2023
1 parent 990b87b commit c62960b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/experimental/test_openapi_3_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def address() -> Address:
schema = from_asgi("/openapi.json", fastapi_app)

@given(case=schema["/address/"]["GET"].as_strategy())
@settings(phases=[Phase.generate])
@settings(phases=[Phase.generate], deadline=None)
def test(case):
response = case.call_asgi()
with pytest.raises(CheckFailed) as exc:
Expand Down
2 changes: 1 addition & 1 deletion test/test_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_text_csv(api_schema):
# And the user registers a custom serializer for it

@given(case=api_schema["/csv"]["POST"].as_strategy())
@settings(max_examples=5)
@settings(max_examples=5, deadline=None)
def test(case):
if case.app is not None:
response = case.call_wsgi()
Expand Down

0 comments on commit c62960b

Please sign in to comment.