schemathesis 3.34.0__py3-none-any.whl → 3.34.1__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/checks.py +10 -8
- {schemathesis-3.34.0.dist-info → schemathesis-3.34.1.dist-info}/METADATA +1 -1
- {schemathesis-3.34.0.dist-info → schemathesis-3.34.1.dist-info}/RECORD +6 -6
- {schemathesis-3.34.0.dist-info → schemathesis-3.34.1.dist-info}/WHEEL +0 -0
- {schemathesis-3.34.0.dist-info → schemathesis-3.34.1.dist-info}/entry_points.txt +0 -0
- {schemathesis-3.34.0.dist-info → schemathesis-3.34.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -150,15 +150,17 @@ def response_headers_conformance(response: GenericResponse, case: Case) -> bool
|
|
|
150
150
|
for name, definition in defined_headers.items():
|
|
151
151
|
value = response.headers.get(name)
|
|
152
152
|
if value is not None:
|
|
153
|
-
parameter_definition = {"in": "header", **definition}
|
|
154
|
-
parameter: OpenAPI20Parameter | OpenAPI30Parameter
|
|
155
|
-
if isinstance(case.operation.schema, OpenApi30):
|
|
156
|
-
parameter = OpenAPI30Parameter(parameter_definition)
|
|
157
|
-
else:
|
|
158
|
-
parameter = OpenAPI20Parameter(parameter_definition)
|
|
159
|
-
schema = parameter.as_json_schema(case.operation)
|
|
160
|
-
coerced = _coerce_header_value(value, schema)
|
|
161
153
|
with case.operation.schema._validating_response(scopes) as resolver:
|
|
154
|
+
if "$ref" in definition:
|
|
155
|
+
_, definition = resolver.resolve(definition["$ref"])
|
|
156
|
+
parameter_definition = {"in": "header", **definition}
|
|
157
|
+
parameter: OpenAPI20Parameter | OpenAPI30Parameter
|
|
158
|
+
if isinstance(case.operation.schema, OpenApi30):
|
|
159
|
+
parameter = OpenAPI30Parameter(parameter_definition)
|
|
160
|
+
else:
|
|
161
|
+
parameter = OpenAPI20Parameter(parameter_definition)
|
|
162
|
+
schema = parameter.as_json_schema(case.operation)
|
|
163
|
+
coerced = _coerce_header_value(value, schema)
|
|
162
164
|
try:
|
|
163
165
|
jsonschema.validate(
|
|
164
166
|
coerced,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: schemathesis
|
|
3
|
-
Version: 3.34.
|
|
3
|
+
Version: 3.34.1
|
|
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
|
|
@@ -100,7 +100,7 @@ schemathesis/specs/graphql/validation.py,sha256=uINIOt-2E7ZuQV2CxKzwez-7L9tDtqzM
|
|
|
100
100
|
schemathesis/specs/openapi/__init__.py,sha256=HDcx3bqpa6qWPpyMrxAbM3uTo0Lqpg-BUNZhDJSJKnw,279
|
|
101
101
|
schemathesis/specs/openapi/_cache.py,sha256=PAiAu4X_a2PQgD2lG5H3iisXdyg4SaHpU46bRZvfNkM,4320
|
|
102
102
|
schemathesis/specs/openapi/_hypothesis.py,sha256=XtC-rYiH-GHvWykdSSzPFVK7jHNNL7NtibjSEeIZDQw,24122
|
|
103
|
-
schemathesis/specs/openapi/checks.py,sha256=
|
|
103
|
+
schemathesis/specs/openapi/checks.py,sha256=CxDs3eXEXRN6c8xZNrEK60toImgirTP6VTBSoj5w7CU,21236
|
|
104
104
|
schemathesis/specs/openapi/constants.py,sha256=JqM_FHOenqS_MuUE9sxVQ8Hnw0DNM8cnKDwCwPLhID4,783
|
|
105
105
|
schemathesis/specs/openapi/converter.py,sha256=TaYgc5BBHPdkN-n0lqpbeVgLu3eL3L8Wu3y_Vo3TJaQ,2800
|
|
106
106
|
schemathesis/specs/openapi/definitions.py,sha256=Z186F0gNBSCmPg-Kk7Q-n6XxEZHIOzgUyeqixlC62XE,94058
|
|
@@ -144,8 +144,8 @@ schemathesis/transports/auth.py,sha256=yELjkEkfx4g74hNrd0Db9aFf0xDJDRIwhg2vzKOTZ
|
|
|
144
144
|
schemathesis/transports/content_types.py,sha256=VrcRQvF5T_TUjrCyrZcYF2LOwKfs3IrLcMtkVSp1ImI,2189
|
|
145
145
|
schemathesis/transports/headers.py,sha256=hr_AIDOfUxsJxpHfemIZ_uNG3_vzS_ZeMEKmZjbYiBE,990
|
|
146
146
|
schemathesis/transports/responses.py,sha256=6-gvVcRK0Ho_lSydUysBNFWoJwZEiEgf6Iv-GWkQGd8,1675
|
|
147
|
-
schemathesis-3.34.
|
|
148
|
-
schemathesis-3.34.
|
|
149
|
-
schemathesis-3.34.
|
|
150
|
-
schemathesis-3.34.
|
|
151
|
-
schemathesis-3.34.
|
|
147
|
+
schemathesis-3.34.1.dist-info/METADATA,sha256=8nsSWlenwayD_fjRDqd_VqwH3zB3deT0zOEjq4JU7U8,18373
|
|
148
|
+
schemathesis-3.34.1.dist-info/WHEEL,sha256=hKi7AIIx6qfnsRbr087vpeJnrVUuDokDHZacPPMW7-Y,87
|
|
149
|
+
schemathesis-3.34.1.dist-info/entry_points.txt,sha256=VHyLcOG7co0nOeuk8WjgpRETk5P1E2iCLrn26Zkn5uk,158
|
|
150
|
+
schemathesis-3.34.1.dist-info/licenses/LICENSE,sha256=PsPYgrDhZ7g9uwihJXNG-XVb55wj2uYhkl2DD8oAzY0,1103
|
|
151
|
+
schemathesis-3.34.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|