schemathesis 3.22.0__py3-none-any.whl → 3.22.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.
@@ -452,6 +452,7 @@ def remove_ssl_line_number(text: str) -> str:
452
452
 
453
453
  def extract_requests_exception_details(exc: RequestException) -> tuple[str, list[str]]:
454
454
  from requests.exceptions import SSLError, ConnectionError, ChunkedEncodingError
455
+ from urllib3.exceptions import MaxRetryError
455
456
 
456
457
  if isinstance(exc, SSLError):
457
458
  message = "SSL verification problem"
@@ -459,8 +460,12 @@ def extract_requests_exception_details(exc: RequestException) -> tuple[str, list
459
460
  extra = [remove_ssl_line_number(reason)]
460
461
  elif isinstance(exc, ConnectionError):
461
462
  message = "Connection failed"
462
- _, reason = exc.args[0].reason.args[0].split(":", maxsplit=1)
463
- extra = [reason.strip()]
463
+ inner = exc.args[0]
464
+ if isinstance(inner, MaxRetryError) and inner.reason is not None:
465
+ _, reason = inner.reason.args[0].split(":", maxsplit=1)
466
+ extra = [reason.strip()]
467
+ else:
468
+ extra = [" ".join(map(str, inner.args))]
464
469
  elif isinstance(exc, ChunkedEncodingError):
465
470
  message = "Connection broken. The server declared chunked encoding but sent an invalid chunk"
466
471
  extra = [str(exc.args[0].args[1])]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: schemathesis
3
- Version: 3.22.0
3
+ Version: 3.22.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
@@ -8,7 +8,7 @@ schemathesis/auths.py,sha256=09tlGuNGpl3rrsU3ua3UI3rIefqUIpaVtG89U5P6rJo,14731
8
8
  schemathesis/checks.py,sha256=jB7E6PfdeLSwMhjLVGmC3WoGCw4DXug_TYP7o0ETrGQ,1572
9
9
  schemathesis/code_samples.py,sha256=QFwyA7dmc_ij2FRwfbe0uMRm6j2yeofQ8zXynZV3SZI,4122
10
10
  schemathesis/constants.py,sha256=sDvVBhNW1TIvNXFMxicHyNgNTxlng877KZsaS7K_L2Y,2085
11
- schemathesis/exceptions.py,sha256=i3Z9d-B1DlyReaOOjuwnRbRRP6iNym4WjAkQ0KMhv0A,16378
11
+ schemathesis/exceptions.py,sha256=grrVZPTKlSndXunXz0jXExtHGFNRJacJUjFSpk3qjbY,16598
12
12
  schemathesis/failures.py,sha256=cWPaIzou8nv8ioUXImvgT_JyCaj9MOJJS_Nbc6fvhxU,5191
13
13
  schemathesis/filters.py,sha256=oaNrVA6VWCSy85k9CkB9JdaVpHFFTcJ831gPnfW3-PU,9334
14
14
  schemathesis/graphql.py,sha256=YkoKWY5K8lxp7H3ikAs-IsoDbiPwJvChG7O8p3DgwtI,229
@@ -123,8 +123,8 @@ schemathesis/transports/auth.py,sha256=ZKFku9gjhIG6445qNC2p_64Yt9Iz_4azbvja8AMpt
123
123
  schemathesis/transports/content_types.py,sha256=bgep10TeCT9e0GfOxVFBOFmrmdZ3t4tG8MLE0SJN5D0,1297
124
124
  schemathesis/transports/headers.py,sha256=EDxpm8su0AuhyqZUkMex-OFZMAJN_5NHah7fDT2HDZE,989
125
125
  schemathesis/transports/responses.py,sha256=K9eUaU3SqTFsMWegITWWENH3qrlNoT9OgU1aSc2oZ7I,2428
126
- schemathesis-3.22.0.dist-info/METADATA,sha256=_NxKAAVHETnP2-xw4wzlmDBv_nhCTC9fuIuznAAAwLk,15593
127
- schemathesis-3.22.0.dist-info/WHEEL,sha256=hKi7AIIx6qfnsRbr087vpeJnrVUuDokDHZacPPMW7-Y,87
128
- schemathesis-3.22.0.dist-info/entry_points.txt,sha256=VHyLcOG7co0nOeuk8WjgpRETk5P1E2iCLrn26Zkn5uk,158
129
- schemathesis-3.22.0.dist-info/licenses/LICENSE,sha256=PsPYgrDhZ7g9uwihJXNG-XVb55wj2uYhkl2DD8oAzY0,1103
130
- schemathesis-3.22.0.dist-info/RECORD,,
126
+ schemathesis-3.22.1.dist-info/METADATA,sha256=cbIrQGwAfZdZqFRgaQQup8bxSNcP8eVUV2gIN8frJ0Y,15593
127
+ schemathesis-3.22.1.dist-info/WHEEL,sha256=hKi7AIIx6qfnsRbr087vpeJnrVUuDokDHZacPPMW7-Y,87
128
+ schemathesis-3.22.1.dist-info/entry_points.txt,sha256=VHyLcOG7co0nOeuk8WjgpRETk5P1E2iCLrn26Zkn5uk,158
129
+ schemathesis-3.22.1.dist-info/licenses/LICENSE,sha256=PsPYgrDhZ7g9uwihJXNG-XVb55wj2uYhkl2DD8oAzY0,1103
130
+ schemathesis-3.22.1.dist-info/RECORD,,