Browse Source

test: minor test update

pull/15477/head
Suren Khorenyan 1 month ago
parent
commit
0d63ec7c4b
  1. 7
      tests/docs_src/body_depends_model_merge_query_plus_body/test_query_plus_body_tutorial001.py

7
tests/docs_src/body_depends_model_merge_query_plus_body/test_query_plus_body_tutorial001.py

@ -16,18 +16,19 @@ def client():
@pytest.mark.parametrize( @pytest.mark.parametrize(
("path", "query", "json_body"), ("path", "query", "json_body"),
[ [
( pytest.param(
"/clients/case-files/", "/clients/case-files/",
{"client_id": "rick", "region": "west"}, {"client_id": "rick", "region": "west"},
{"title": "Q1", "case_number": "C-9"}, {"title": "Q1", "case_number": "C-9"},
id="case_file",
), ),
( pytest.param(
"/clients/contracts/", "/clients/contracts/",
{"client_id": "morty", "contract_ref": "R-9"}, {"client_id": "morty", "contract_ref": "R-9"},
{"title": "Partner deal", "contract_id": "Z-1"}, {"title": "Partner deal", "contract_id": "Z-1"},
id="contract",
), ),
], ],
ids=["case_file", "contract"],
) )
def test_query_plus_merged_json_body(client, path, query, json_body): def test_query_plus_merged_json_body(client, path, query, json_body):
response = client.post(path, params=query, json=json_body) response = client.post(path, params=query, json=json_body)

Loading…
Cancel
Save