schemathesis 3.33.1__py3-none-any.whl → 3.33.2__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.
@@ -21,7 +21,7 @@ def group_by_case(
21
21
  yield (sample, gen)
22
22
 
23
23
 
24
- def _by_unique_key(check: SerializedCheck, code_sample_style: CodeSampleStyle) -> tuple[str, int | None, str | None]:
24
+ def _by_unique_key(check: SerializedCheck, code_sample_style: CodeSampleStyle) -> tuple[str, int, str]:
25
25
  return (
26
26
  code_sample_style.generate(
27
27
  method=check.example.method,
@@ -31,8 +31,10 @@ def _by_unique_key(check: SerializedCheck, code_sample_style: CodeSampleStyle) -
31
31
  verify=check.example.verify,
32
32
  extra_headers=check.example.extra_headers,
33
33
  ),
34
- None if not check.response else check.response.status_code,
35
- None if not check.response else check.response.body,
34
+ 0 if not check.response else check.response.status_code,
35
+ "SCHEMATHESIS-INTERNAL-NO-RESPONSE"
36
+ if not check.response
37
+ else check.response.body or "SCHEMATHESIS-INTERNAL-EMPTY-BODY",
36
38
  )
37
39
 
38
40
 
@@ -7,6 +7,7 @@ from dataclasses import dataclass, field
7
7
  from typing import TYPE_CHECKING, Any, Generator, Iterator, Type
8
8
 
9
9
  import hypothesis
10
+ from hypothesis.stateful import Rule
10
11
  import requests
11
12
  from hypothesis.control import current_build_context
12
13
  from hypothesis.errors import Flaky
@@ -139,6 +140,9 @@ def _execute_state_machine_loop(
139
140
  def get_call_kwargs(self, case: Case) -> dict[str, Any]:
140
141
  return call_kwargs
141
142
 
143
+ def _repr_step(self, rule: Rule, data: dict, result: StepResult) -> str:
144
+ return ""
145
+
142
146
  if config.override is not None:
143
147
 
144
148
  def before_call(self, case: Case) -> None:
@@ -58,7 +58,7 @@ def validate_response(
58
58
  )
59
59
  check_results.append(passed_check)
60
60
 
61
- for check in checks + additional_checks:
61
+ for check in tuple(checks) + tuple(additional_checks):
62
62
  name = check.__name__
63
63
  copied_case = case.partial_deepcopy()
64
64
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: schemathesis
3
- Version: 3.33.1
3
+ Version: 3.33.2
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
@@ -37,7 +37,7 @@ schemathesis/cli/debug.py,sha256=_YA-bX1ujHl4bqQDEum7M-I2XHBTEGbvgkhvcvKhmgU,658
37
37
  schemathesis/cli/handlers.py,sha256=RjvogPCqqFTiyVYWrGG6euw9-6h-7uSeFvS-ouU8eWs,389
38
38
  schemathesis/cli/junitxml.py,sha256=yWacOIrTC9UI-IlgZnu8nfSmpkxfMT22NqJ3L1SZa3w,4743
39
39
  schemathesis/cli/options.py,sha256=DY5PUzpUNyYgpcqqFTeZjmVUykpbaI9fbN44QIWNOfA,2559
40
- schemathesis/cli/reporting.py,sha256=AT8ZjSUeH0S9Dl1ZhvTw0CJPy1JdIIRuRWxsJXfFpjc,3521
40
+ schemathesis/cli/reporting.py,sha256=zNKaRAUfDZ23-gMtiWbnG2OBndkYlM7ljKvk0Mc_lqI,3589
41
41
  schemathesis/cli/sanitization.py,sha256=pVlQnVDC1_Ugp0oe1LEkRorFdBRDHqr_NWWKaOaNdY0,728
42
42
  schemathesis/cli/output/__init__.py,sha256=AXaUzQ1nhQ-vXhW4-X-91vE2VQtEcCOrGtQXXNN55iQ,29
43
43
  schemathesis/cli/output/default.py,sha256=nYuUwm2M3pIsDebofgXuIFb7Vl4t4sLO0PKmJcE6tb8,39385
@@ -134,18 +134,18 @@ schemathesis/stateful/__init__.py,sha256=qyQJ-9Ect-AWZiAsK63F3BTGu-jZnPCOp1q46YA
134
134
  schemathesis/stateful/config.py,sha256=rtGl3egoUuPFxrWcl5xZj_6KmKzZyYaC0b_AUotvurs,2930
135
135
  schemathesis/stateful/context.py,sha256=MeP3-lKyhtAd-jzApC65AWlDZSOBzQq0IgK-nvagYqs,4519
136
136
  schemathesis/stateful/events.py,sha256=reGjsmS-y2izRd3bahpEZNe4zxTSpKAkPI-nCQyoUzI,6733
137
- schemathesis/stateful/runner.py,sha256=vFd8Id3zzSQVHBK9UgInBpBT7oyUNagQ0p7ZJnPyHRk,10969
137
+ schemathesis/stateful/runner.py,sha256=5YLWTzTWGfT3u14-9EQRe3zgJjwdvNUJi9YGrOJ03_c,11110
138
138
  schemathesis/stateful/sink.py,sha256=xjsqJYH5WETKh5pDGlchYyjT3HcjzHEotUjvo1p0JsE,2470
139
139
  schemathesis/stateful/state_machine.py,sha256=iRbznWxHnUdLhMpiBaHxe6Nh1EacyGnGFz4DCRwV5j4,12228
140
140
  schemathesis/stateful/statistic.py,sha256=xPLiCw61ofNXQicqcK_sZyLHiqiGcgQARpwd8AiRubM,487
141
- schemathesis/stateful/validation.py,sha256=CN0gEj1UKPLpZsvgOnovnPG_EuD4tEMkKwz_DeryTeQ,3591
141
+ schemathesis/stateful/validation.py,sha256=JtqnRzl11ZbVR8Lcr0xBJKoOXzx8VUfRz92jOnB2Smg,3605
142
142
  schemathesis/transports/__init__.py,sha256=j5WwdEzXi4XGT-Q_IrCI0fYJw19h17Qq4LJIMbmPXnk,12445
143
143
  schemathesis/transports/auth.py,sha256=yELjkEkfx4g74hNrd0Db9aFf0xDJDRIwhg2vzKOTZGg,1138
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.33.1.dist-info/METADATA,sha256=Fkjkxp4EXTL2_u0nrLQpB_FacY15xAhLcbSdojE8MYA,17795
148
- schemathesis-3.33.1.dist-info/WHEEL,sha256=hKi7AIIx6qfnsRbr087vpeJnrVUuDokDHZacPPMW7-Y,87
149
- schemathesis-3.33.1.dist-info/entry_points.txt,sha256=VHyLcOG7co0nOeuk8WjgpRETk5P1E2iCLrn26Zkn5uk,158
150
- schemathesis-3.33.1.dist-info/licenses/LICENSE,sha256=PsPYgrDhZ7g9uwihJXNG-XVb55wj2uYhkl2DD8oAzY0,1103
151
- schemathesis-3.33.1.dist-info/RECORD,,
147
+ schemathesis-3.33.2.dist-info/METADATA,sha256=gdrfnhSVNZu9U2o6paLsjRF_CKO1tseEnbe4MeQx_KA,17795
148
+ schemathesis-3.33.2.dist-info/WHEEL,sha256=hKi7AIIx6qfnsRbr087vpeJnrVUuDokDHZacPPMW7-Y,87
149
+ schemathesis-3.33.2.dist-info/entry_points.txt,sha256=VHyLcOG7co0nOeuk8WjgpRETk5P1E2iCLrn26Zkn5uk,158
150
+ schemathesis-3.33.2.dist-info/licenses/LICENSE,sha256=PsPYgrDhZ7g9uwihJXNG-XVb55wj2uYhkl2DD8oAzY0,1103
151
+ schemathesis-3.33.2.dist-info/RECORD,,