Skip to content

Commit 4e29a21

Browse files
committed
chore: Update parametrize parameters
1 parent 6d3d2fd commit 4e29a21

3 files changed

Lines changed: 5 additions & 5 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.include(path="/ping").parametrize()
13+
@schema.include(path="/ping", method="GET").parametrize()
1414
def test_ping(case):
1515
response = case.call()
1616
assert response.status_code == 200, "this api errors on purpose"

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.include(path="/ping").parametrize()
17+
@schema.include(path="/ping", method="GET").parametrize()
1818
def test_ping(case):
1919
response = case.call()
2020
assert response.status_code == 200, "this api errors on purpose"

applications/samples/test/api/test_st.py

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

1212

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

1818

19-
@schema.include(path="/valid").parametrize()
19+
@schema.include(path="/valid", method="GET").parametrize()
2020
def test_bearer(case):
2121
response = case.call()
2222
case.validate_response(response, checks=(response_schema_conformance,))
2323

2424

25-
@schema.include(path="/valid-cookie").parametrize()
25+
@schema.include(path="/valid-cookie", method="GET").parametrize()
2626
def test_cookie(case):
2727
response = case.call()
2828
case.validate_response(response, checks=(response_schema_conformance,))

0 commit comments

Comments
 (0)