schemathesis 3.39.15__py3-none-any.whl → 3.39.16__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/_hypothesis.py +6 -1
- schemathesis/specs/openapi/schemas.py +5 -1
- {schemathesis-3.39.15.dist-info → schemathesis-3.39.16.dist-info}/METADATA +1 -1
- {schemathesis-3.39.15.dist-info → schemathesis-3.39.16.dist-info}/RECORD +7 -7
- {schemathesis-3.39.15.dist-info → schemathesis-3.39.16.dist-info}/WHEEL +0 -0
- {schemathesis-3.39.15.dist-info → schemathesis-3.39.16.dist-info}/entry_points.txt +0 -0
- {schemathesis-3.39.15.dist-info → schemathesis-3.39.16.dist-info}/licenses/LICENSE +0 -0
schemathesis/_hypothesis.py
CHANGED
@@ -11,6 +11,7 @@ from typing import TYPE_CHECKING, Any, Callable, Generator, Mapping
|
|
11
11
|
|
12
12
|
import hypothesis
|
13
13
|
from hypothesis import Phase
|
14
|
+
from hypothesis._settings import all_settings
|
14
15
|
from hypothesis.errors import HypothesisWarning, Unsatisfiable
|
15
16
|
from hypothesis.internal.entropy import deterministic_PRNG
|
16
17
|
from jsonschema.exceptions import SchemaError
|
@@ -101,7 +102,11 @@ def create_test(
|
|
101
102
|
default = hypothesis.settings.default
|
102
103
|
wrapped_test._hypothesis_internal_use_settings = hypothesis.settings(
|
103
104
|
wrapped_test._hypothesis_internal_use_settings,
|
104
|
-
**{
|
105
|
+
**{
|
106
|
+
item: getattr(settings, item)
|
107
|
+
for item in all_settings
|
108
|
+
if getattr(settings, item) != getattr(default, item)
|
109
|
+
},
|
105
110
|
)
|
106
111
|
else:
|
107
112
|
wrapped_test = settings(wrapped_test)
|
@@ -1181,7 +1181,11 @@ class OpenApi30(SwaggerV20):
|
|
1181
1181
|
files = []
|
1182
1182
|
definition = operation.definition.raw
|
1183
1183
|
if "$ref" in definition["requestBody"]:
|
1184
|
-
|
1184
|
+
self.resolver.push_scope(operation.definition.scope)
|
1185
|
+
try:
|
1186
|
+
body = self.resolver.resolve_all(definition["requestBody"], RECURSION_DEPTH_LIMIT)
|
1187
|
+
finally:
|
1188
|
+
self.resolver.pop_scope()
|
1185
1189
|
else:
|
1186
1190
|
body = definition["requestBody"]
|
1187
1191
|
content = body["content"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: schemathesis
|
3
|
-
Version: 3.39.
|
3
|
+
Version: 3.39.16
|
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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
schemathesis/__init__.py,sha256=AGpMI329waZiHwU05CW7cB1cxqQsXvRPB5vs4N7ktB4,2090
|
2
2
|
schemathesis/_compat.py,sha256=y4RZd59i2NCnZ91VQhnKeMn_8t3SgvLOk2Xm8nymUHY,1837
|
3
3
|
schemathesis/_dependency_versions.py,sha256=pjEkkGAfOQJYNb-9UOo84V8nj_lKHr_TGDVdFwY2UU0,816
|
4
|
-
schemathesis/_hypothesis.py,sha256=
|
4
|
+
schemathesis/_hypothesis.py,sha256=L0cCrVk4NBI4Tn9pRIQe_URPXsJCn5Ooay0VHbdj5z8,30899
|
5
5
|
schemathesis/_lazy_import.py,sha256=aMhWYgbU2JOltyWBb32vnWBb6kykOghucEzI_F70yVE,470
|
6
6
|
schemathesis/_override.py,sha256=TAjYB3eJQmlw9K_xiR9ptt9Wj7if4U7UFlUhGjpBAoM,1625
|
7
7
|
schemathesis/_patches.py,sha256=Hsbpn4UVeXUQD2Kllrbq01CSWsTYENWa0VJTyhX5C2k,895
|
@@ -119,7 +119,7 @@ schemathesis/specs/openapi/media_types.py,sha256=dNTxpRQbY3SubdVjh4Cjb38R6Bc9MF9
|
|
119
119
|
schemathesis/specs/openapi/parameters.py,sha256=fP4BupY_1wFbjL9n0lTtpQZY0YBt2mCjrG598LF8ZOI,14712
|
120
120
|
schemathesis/specs/openapi/patterns.py,sha256=L99UtslPvwObCVf5ndq3vL2YjQ7H1nMb-ZNMcyz_Qvk,12677
|
121
121
|
schemathesis/specs/openapi/references.py,sha256=0-gqbAxvBfrvFXA7YqmcNh7zRY7V_pKEnak0ncwQljI,9894
|
122
|
-
schemathesis/specs/openapi/schemas.py,sha256=
|
122
|
+
schemathesis/specs/openapi/schemas.py,sha256=Vrk6ORM1POvMe5XkbYTT9pnLFsDTFvHXrCplyKnBeDU,54173
|
123
123
|
schemathesis/specs/openapi/security.py,sha256=Z-6pk2Ga1PTUtBe298KunjVHsNh5A-teegeso7zcPIE,7138
|
124
124
|
schemathesis/specs/openapi/serialization.py,sha256=rcZfqQbWer_RELedu4Sh5h_RhKYPWTfUjnmLwpP2R_A,11842
|
125
125
|
schemathesis/specs/openapi/utils.py,sha256=ER4vJkdFVDIE7aKyxyYatuuHVRNutytezgE52pqZNE8,900
|
@@ -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.16.dist-info/METADATA,sha256=3G135B_eBxr3JzsGS2GBSk9HrsnaD0CSfo-fUIVpKRM,11901
|
157
|
+
schemathesis-3.39.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
158
|
+
schemathesis-3.39.16.dist-info/entry_points.txt,sha256=VHyLcOG7co0nOeuk8WjgpRETk5P1E2iCLrn26Zkn5uk,158
|
159
|
+
schemathesis-3.39.16.dist-info/licenses/LICENSE,sha256=PsPYgrDhZ7g9uwihJXNG-XVb55wj2uYhkl2DD8oAzY0,1103
|
160
|
+
schemathesis-3.39.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|