Skip to content

Commit b8c65c2

Browse files
committed
chore: Update parametrize parameters
1 parent 8b82aa5 commit b8c65c2

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

application-templates/base/test/api/test_st.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
schema = st.from_uri(app_url + "/openapi.json")
1111

1212

13-
@schema.parametrize(endpoint="/ping")
13+
@schema.include(path="/ping").parametrize()
1414
def test_ping(case):
1515
response = case.call()
1616
pprint(response.__dict__)

application-templates/django-base/api/test_st.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
schema = st.from_uri(app_url.replace("/api", "") + "/openapi.json")
1515

1616

17-
@schema.parametrize(endpoint="/ping")
17+
@schema.include(path="/ping").parametrize()
1818
def test_ping(case):
1919
response = case.call()
2020
pprint(response.__dict__)

applications/samples/test/api/test_st.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@
1010
schema = st.from_uri(app_url + "/openapi.json")
1111

1212

13-
@schema.parametrize(endpoint="/error")
13+
@schema.include(path="/error").parametrize()
1414
def test_api(case):
1515
response = case.call()
1616
pprint(response.__dict__)
1717
assert response.status_code >= 500, "this api errors on purpose"
1818

1919

20-
@schema.parametrize(endpoint="/valid")
20+
@schema.include(path="/valid").parametrize()
2121
def test_bearer(case):
2222
response = case.call()
2323

2424
case.validate_response(response, checks=(response_schema_conformance,))
2525

2626

27-
@schema.parametrize(endpoint="/valid-cookie")
27+
@schema.include(path="/valid-cookie").parametrize()
2828
def test_cookie(case):
2929
response = case.call()
3030
case.validate_response(response, checks=(response_schema_conformance,))
3131

3232

33-
@schema.parametrize(endpoint="/sampleresources", method="POST")
33+
@schema.include(path="/sampleresources", method="POST").parametrize()
3434
def test_response(case):
3535
response = case.call()
3636
case.validate_response(response, checks=(response_schema_conformance,))

0 commit comments

Comments
 (0)