schemathesis 3.39.3__py3-none-any.whl → 3.39.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- schemathesis/specs/openapi/examples.py +4 -1
- {schemathesis-3.39.3.dist-info → schemathesis-3.39.4.dist-info}/METADATA +1 -1
- {schemathesis-3.39.3.dist-info → schemathesis-3.39.4.dist-info}/RECORD +6 -6
- {schemathesis-3.39.3.dist-info → schemathesis-3.39.4.dist-info}/WHEEL +0 -0
- {schemathesis-3.39.3.dist-info → schemathesis-3.39.4.dist-info}/entry_points.txt +0 -0
- {schemathesis-3.39.3.dist-info → schemathesis-3.39.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -408,7 +408,8 @@ def find_matching_in_responses(examples: dict[str, list], param: str) -> Iterato
|
|
|
408
408
|
if found is not NOT_FOUND:
|
|
409
409
|
yield found
|
|
410
410
|
continue
|
|
411
|
-
|
|
411
|
+
if isinstance(inner, dict):
|
|
412
|
+
example = inner
|
|
412
413
|
found = _find_matching_in_responses(example, schema_name, param, normalized, is_id_param)
|
|
413
414
|
if found is not NOT_FOUND:
|
|
414
415
|
yield found
|
|
@@ -420,6 +421,8 @@ def _find_matching_in_responses(
|
|
|
420
421
|
# Check for exact match
|
|
421
422
|
if param in example:
|
|
422
423
|
return example[param]
|
|
424
|
+
if is_id_param and param[:-2] in example:
|
|
425
|
+
return example[param[:-2]]
|
|
423
426
|
|
|
424
427
|
# Check for case-insensitive match
|
|
425
428
|
for key in example:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: schemathesis
|
|
3
|
-
Version: 3.39.
|
|
3
|
+
Version: 3.39.4
|
|
4
4
|
Summary: Property-based testing framework for Open API and GraphQL based apps
|
|
5
5
|
Project-URL: Documentation, https://schemathesis.readthedocs.io/en/stable/
|
|
6
6
|
Project-URL: Changelog, https://schemathesis.readthedocs.io/en/stable/changelog.html
|
|
@@ -111,7 +111,7 @@ schemathesis/specs/openapi/checks.py,sha256=fWtI7rq4wi6qK2E9U_hdJlIyIBVTCB4Klh_3
|
|
|
111
111
|
schemathesis/specs/openapi/constants.py,sha256=JqM_FHOenqS_MuUE9sxVQ8Hnw0DNM8cnKDwCwPLhID4,783
|
|
112
112
|
schemathesis/specs/openapi/converter.py,sha256=Yxw9lS_JKEyi-oJuACT07fm04bqQDlAu-iHwzkeDvE4,3546
|
|
113
113
|
schemathesis/specs/openapi/definitions.py,sha256=WTkWwCgTc3OMxfKsqh6YDoGfZMTThSYrHGp8h0vLAK0,93935
|
|
114
|
-
schemathesis/specs/openapi/examples.py,sha256=
|
|
114
|
+
schemathesis/specs/openapi/examples.py,sha256=hdeq7et8AexYGY2iU6SfMZWJ7G0PbOfapUtc4upNs_4,20483
|
|
115
115
|
schemathesis/specs/openapi/formats.py,sha256=3KtEC-8nQRwMErS-WpMadXsr8R0O-NzYwFisZqMuc-8,2761
|
|
116
116
|
schemathesis/specs/openapi/links.py,sha256=C4Uir2P_EcpqME8ee_a1vdUM8Tm3ZcKNn2YsGjZiMUQ,17935
|
|
117
117
|
schemathesis/specs/openapi/loaders.py,sha256=5B1cgYEBj3h2psPQxzrQ5Xq5owLVGw-u9HsCQIx7yFE,25705
|
|
@@ -153,8 +153,8 @@ schemathesis/transports/auth.py,sha256=urSTO9zgFO1qU69xvnKHPFQV0SlJL3d7_Ojl0tLnZ
|
|
|
153
153
|
schemathesis/transports/content_types.py,sha256=MiKOm-Hy5i75hrROPdpiBZPOTDzOwlCdnthJD12AJzI,2187
|
|
154
154
|
schemathesis/transports/headers.py,sha256=hr_AIDOfUxsJxpHfemIZ_uNG3_vzS_ZeMEKmZjbYiBE,990
|
|
155
155
|
schemathesis/transports/responses.py,sha256=OFD4ZLqwEFpo7F9vaP_SVgjhxAqatxIj38FS4XVq8Qs,1680
|
|
156
|
-
schemathesis-3.39.
|
|
157
|
-
schemathesis-3.39.
|
|
158
|
-
schemathesis-3.39.
|
|
159
|
-
schemathesis-3.39.
|
|
160
|
-
schemathesis-3.39.
|
|
156
|
+
schemathesis-3.39.4.dist-info/METADATA,sha256=pR_nsqtFTUMX56DrJy_l9D9Ir8AaT1YkRxM-W0Xz1JA,12956
|
|
157
|
+
schemathesis-3.39.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
158
|
+
schemathesis-3.39.4.dist-info/entry_points.txt,sha256=VHyLcOG7co0nOeuk8WjgpRETk5P1E2iCLrn26Zkn5uk,158
|
|
159
|
+
schemathesis-3.39.4.dist-info/licenses/LICENSE,sha256=PsPYgrDhZ7g9uwihJXNG-XVb55wj2uYhkl2DD8oAzY0,1103
|
|
160
|
+
schemathesis-3.39.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|