schemathesis 4.1.2__py3-none-any.whl → 4.1.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/core/curl.py CHANGED
@@ -23,7 +23,11 @@ def generate(
23
23
  _filter_headers(headers, known_generated_headers or {})
24
24
  command = f"curl -X {method}"
25
25
  for key, value in headers.items():
26
- header = f"{key}: {value}"
26
+ # To send an empty header with cURL we need to use `;`, otherwise empty header is ignored
27
+ if not value:
28
+ header = f"{key};"
29
+ else:
30
+ header = f"{key}: {value}"
27
31
  command += f" -H {quote(header)}"
28
32
  if body:
29
33
  if isinstance(body, bytes):
@@ -480,7 +480,7 @@ def cover_schema_iter(
480
480
  # The `pattern` value may require an non-empty one and the generation will fail
481
481
  # However, it is fine to violate `pattern` here as it is negative string generation anyway
482
482
  value = ""
483
- if seen.insert(value):
483
+ if ctx.is_valid_for_location(value) and seen.insert(value):
484
484
  yield NegativeValue(
485
485
  value, description="String smaller than minLength", location=ctx.current_path
486
486
  )
@@ -500,7 +500,7 @@ def cover_schema_iter(
500
500
  value = ctx.generate_from_schema(new_schema)
501
501
  else:
502
502
  value = ctx.generate_from_schema(new_schema)
503
- if seen.insert(value):
503
+ if ctx.is_valid_for_location(value) and seen.insert(value):
504
504
  yield NegativeValue(
505
505
  value, description="String smaller than minLength", location=ctx.current_path
506
506
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: schemathesis
3
- Version: 4.1.2
3
+ Version: 4.1.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://github.com/schemathesis/schemathesis/blob/master/CHANGELOG.md
@@ -49,7 +49,7 @@ schemathesis/config/schema.json,sha256=3CRSBfUK2vLVl1h5PfeK_YDdEoBZSojYl8Q1kT-IT
49
49
  schemathesis/core/__init__.py,sha256=h4gmDePIPvPiVuYxnjrpPKytSZPi6fZeVdTG6c822E4,1973
50
50
  schemathesis/core/compat.py,sha256=9BWCrFoqN2sJIaiht_anxe8kLjYMR7t0iiOkXqLRUZ8,1058
51
51
  schemathesis/core/control.py,sha256=IzwIc8HIAEMtZWW0Q0iXI7T1niBpjvcLlbuwOSmy5O8,130
52
- schemathesis/core/curl.py,sha256=yuaCe_zHLGwUjEeloQi6W3tOA3cGdnHDNI17-5jia0o,1723
52
+ schemathesis/core/curl.py,sha256=jrPL9KpNHteyJ6A1oxJRSkL5bfuBeuPs3xh9Z_ml2cE,1892
53
53
  schemathesis/core/deserialization.py,sha256=qjXUPaz_mc1OSgXzTUSkC8tuVR8wgVQtb9g3CcAF6D0,2951
54
54
  schemathesis/core/errors.py,sha256=pwiyGhX7tId88Toe2H4ZYsCDc_OvUJtW8Wv-xDv2UD4,16361
55
55
  schemathesis/core/failures.py,sha256=yFpAxWdEnm0Ri8z8RqRI9H7vcLH5ztOeSIi4m4SGx5g,8996
@@ -86,7 +86,7 @@ schemathesis/engine/phases/unit/_executor.py,sha256=pqUISTWvnXb61rgrnzwlFn7PyR-Z
86
86
  schemathesis/engine/phases/unit/_pool.py,sha256=iU0hdHDmohPnEv7_S1emcabuzbTf-Cznqwn0pGQ5wNQ,2480
87
87
  schemathesis/generation/__init__.py,sha256=tvNO2FLiY8z3fZ_kL_QJhSgzXfnT4UqwSXMHCwfLI0g,645
88
88
  schemathesis/generation/case.py,sha256=Qc2_5JrWuUkCzAFTTgnVqNUJ2sioslmINTXiY7nHHgA,12326
89
- schemathesis/generation/coverage.py,sha256=8kxz08sMe7u3yT09W1PtIg_Y-9f1O-hBTuPyeSge2pU,56569
89
+ schemathesis/generation/coverage.py,sha256=_mqzT_ZtnfvOM0I9X4Qul-uw__U-gVqL2x7OOVADACU,56643
90
90
  schemathesis/generation/meta.py,sha256=yYR7EB1f5n7RrzWHZ6YATepurnnc_hEe7HnztRbaaA0,2699
91
91
  schemathesis/generation/metrics.py,sha256=cZU5HdeAMcLFEDnTbNE56NuNq4P0N4ew-g1NEz5-kt4,2836
92
92
  schemathesis/generation/modes.py,sha256=Q1fhjWr3zxabU5qdtLvKfpMFZJAwlW9pnxgenjeXTyU,481
@@ -157,8 +157,8 @@ schemathesis/transport/prepare.py,sha256=erYXRaxpQokIDzaIuvt_csHcw72iHfCyNq8VNEz
157
157
  schemathesis/transport/requests.py,sha256=XWiQVG4rGnFX0rOhOZAKVIPbrlknLuS7pHYwUcOiEGs,10942
158
158
  schemathesis/transport/serialization.py,sha256=igUXKZ_VJ9gV7P0TUc5PDQBJXl_s0kK9T3ljGWWvo6E,10339
159
159
  schemathesis/transport/wsgi.py,sha256=KoAfvu6RJtzyj24VGB8e-Iaa9smpgXJ3VsM8EgAz2tc,6152
160
- schemathesis-4.1.2.dist-info/METADATA,sha256=29s0l-ISmsOaNtfY14dG-YwUGOv7a0A-1wCma2a__mE,8540
161
- schemathesis-4.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
162
- schemathesis-4.1.2.dist-info/entry_points.txt,sha256=hiK3un-xfgPdwj9uj16YVDtTNpO128bmk0U82SMv8ZQ,152
163
- schemathesis-4.1.2.dist-info/licenses/LICENSE,sha256=2Ve4J8v5jMQAWrT7r1nf3bI8Vflk3rZVQefiF2zpxwg,1121
164
- schemathesis-4.1.2.dist-info/RECORD,,
160
+ schemathesis-4.1.4.dist-info/METADATA,sha256=XzysnOK9zHTGzi9iMRMusdXqaIyIinOClMIrjNYk6gg,8540
161
+ schemathesis-4.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
162
+ schemathesis-4.1.4.dist-info/entry_points.txt,sha256=hiK3un-xfgPdwj9uj16YVDtTNpO128bmk0U82SMv8ZQ,152
163
+ schemathesis-4.1.4.dist-info/licenses/LICENSE,sha256=2Ve4J8v5jMQAWrT7r1nf3bI8Vflk3rZVQefiF2zpxwg,1121
164
+ schemathesis-4.1.4.dist-info/RECORD,,