schemathesis 4.0.5__py3-none-any.whl → 4.0.6__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/cli/commands/run/handlers/junitxml.py +1 -1
- schemathesis/cli/commands/run/handlers/output.py +0 -1
- schemathesis/engine/phases/probes.py +2 -3
- {schemathesis-4.0.5.dist-info → schemathesis-4.0.6.dist-info}/METADATA +1 -1
- {schemathesis-4.0.5.dist-info → schemathesis-4.0.6.dist-info}/RECORD +8 -8
- {schemathesis-4.0.5.dist-info → schemathesis-4.0.6.dist-info}/WHEEL +0 -0
- {schemathesis-4.0.5.dist-info → schemathesis-4.0.6.dist-info}/entry_points.txt +0 -0
- {schemathesis-4.0.5.dist-info → schemathesis-4.0.6.dist-info}/licenses/LICENSE +0 -0
@@ -41,7 +41,7 @@ class JunitXMLHandler(EventHandler):
|
|
41
41
|
TestSuite("schemathesis", test_cases=list(self.test_cases.values()), hostname=platform.node())
|
42
42
|
]
|
43
43
|
with open(self.path, "w") as fd:
|
44
|
-
to_xml_report_file(file_descriptor=fd, test_suites=test_suites, prettyprint=True)
|
44
|
+
to_xml_report_file(file_descriptor=fd, test_suites=test_suites, prettyprint=True, encoding="utf-8")
|
45
45
|
|
46
46
|
def get_or_create_test_case(self, label: str) -> TestCase:
|
47
47
|
return self.test_cases.setdefault(label, TestCase(label, elapsed_sec=0.0, allow_multiple_subelements=True))
|
@@ -955,7 +955,6 @@ class OutputHandler(EventHandler):
|
|
955
955
|
ProbeOutcome.SUCCESS: ("✓", Style(color="green")),
|
956
956
|
ProbeOutcome.FAILURE: ("✘", Style(color="red")),
|
957
957
|
ProbeOutcome.SKIP: ("⊘", Style(color="yellow")),
|
958
|
-
ProbeOutcome.ERROR: ("⚠", Style(color="yellow")),
|
959
958
|
}[probe_run.outcome]
|
960
959
|
|
961
960
|
table.add_row(f"{probe_run.probe.name}:", Text(icon, style=style))
|
@@ -86,8 +86,6 @@ class ProbeOutcome(str, enum.Enum):
|
|
86
86
|
FAILURE = "failure"
|
87
87
|
# Probe is not applicable
|
88
88
|
SKIP = "skip"
|
89
|
-
# Error occurred during the probe
|
90
|
-
ERROR = "error"
|
91
89
|
|
92
90
|
|
93
91
|
@dataclass
|
@@ -166,7 +164,8 @@ def send(probe: Probe, ctx: EngineContext) -> ProbeRun:
|
|
166
164
|
# which is not currently implemented
|
167
165
|
return ProbeRun(probe, ProbeOutcome.SKIP, None, None, None)
|
168
166
|
except RequestException as exc:
|
167
|
+
# Consider any network errors as a failed probe
|
169
168
|
req = exc.request if isinstance(exc.request, PreparedRequest) else None
|
170
|
-
return ProbeRun(probe, ProbeOutcome.
|
169
|
+
return ProbeRun(probe, ProbeOutcome.FAILURE, req, None, exc)
|
171
170
|
result_type = probe.analyze_response(response)
|
172
171
|
return ProbeRun(probe, result_type, request, response)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: schemathesis
|
3
|
-
Version: 4.0.
|
3
|
+
Version: 4.0.6
|
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
|
@@ -22,8 +22,8 @@ schemathesis/cli/commands/run/validation.py,sha256=FzCzYdW1-hn3OgyzPO1p6wHEX5PG7
|
|
22
22
|
schemathesis/cli/commands/run/handlers/__init__.py,sha256=TPZ3KdGi8m0fjlN0GjA31MAXXn1qI7uU4FtiDwroXZI,1915
|
23
23
|
schemathesis/cli/commands/run/handlers/base.py,sha256=yDsTtCiztLksfk7cRzg8JlaAVOfS-zwK3tsJMOXAFyc,530
|
24
24
|
schemathesis/cli/commands/run/handlers/cassettes.py,sha256=rRD4byjp4HXCkJS-zx3jSIFOJsPq77ejPpYeyCtsEZs,19461
|
25
|
-
schemathesis/cli/commands/run/handlers/junitxml.py,sha256=
|
26
|
-
schemathesis/cli/commands/run/handlers/output.py,sha256=
|
25
|
+
schemathesis/cli/commands/run/handlers/junitxml.py,sha256=3KylA3wDBzpGjUhQnNIT6rfCo_8uh29epcUOY5bHHzQ,2568
|
26
|
+
schemathesis/cli/commands/run/handlers/output.py,sha256=IRERu8Mir3yi5BgDf40SFwYQbxd0aTrWE9IRkjdO7h4,62808
|
27
27
|
schemathesis/cli/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
28
|
schemathesis/cli/ext/fs.py,sha256=3lvoAsEDDdih75ITJJNxemd3nwxX55gGWrI7uDxm0cM,447
|
29
29
|
schemathesis/cli/ext/groups.py,sha256=kQ37t6qeArcKaY2y5VxyK3_KwAkBKCVm58IYV8gewds,2720
|
@@ -76,7 +76,7 @@ schemathesis/engine/errors.py,sha256=HRtFFg-TQ68VmGAM3p6VLOimTU7VaFnv6iKD9-ucjaw
|
|
76
76
|
schemathesis/engine/events.py,sha256=VV6epicFIJnX4c87fVNSd0ibDccX3gryDv52OUGa3FI,6370
|
77
77
|
schemathesis/engine/recorder.py,sha256=K3HfMARrT5mPWXPnYebjjcq5CcsBRhMrtZwEL9_Lvtg,8432
|
78
78
|
schemathesis/engine/phases/__init__.py,sha256=jUIfb_9QoUo4zmJEVU0z70PgXPYjt8CIqp4qP_HlYHg,3146
|
79
|
-
schemathesis/engine/phases/probes.py,sha256=
|
79
|
+
schemathesis/engine/phases/probes.py,sha256=zvK-uLjVXpvaQ89hNq73WRH_OiIHRWvhvnOkx_C8Iq0,5678
|
80
80
|
schemathesis/engine/phases/stateful/__init__.py,sha256=Lz1rgNqCfUSIz173XqCGsiMuUI5bh4L-RIFexU1-c_Q,2461
|
81
81
|
schemathesis/engine/phases/stateful/_executor.py,sha256=_303Yqflx1iFNTQI2EfjSp_2T21YvzJJgMSazhpv5JQ,15200
|
82
82
|
schemathesis/engine/phases/stateful/context.py,sha256=A7X1SLDOWFpCvFN9IiIeNVZM0emjqatmJL_k9UsO7vM,2946
|
@@ -157,8 +157,8 @@ schemathesis/transport/prepare.py,sha256=iiB8KTAqnnuqjWzblIPiGVdkGIF7Yr1SAEz-KZz
|
|
157
157
|
schemathesis/transport/requests.py,sha256=rziZTrZCVMAqgy6ldB8iTwhkpAsnjKSgK8hj5Sq3ThE,10656
|
158
158
|
schemathesis/transport/serialization.py,sha256=igUXKZ_VJ9gV7P0TUc5PDQBJXl_s0kK9T3ljGWWvo6E,10339
|
159
159
|
schemathesis/transport/wsgi.py,sha256=KoAfvu6RJtzyj24VGB8e-Iaa9smpgXJ3VsM8EgAz2tc,6152
|
160
|
-
schemathesis-4.0.
|
161
|
-
schemathesis-4.0.
|
162
|
-
schemathesis-4.0.
|
163
|
-
schemathesis-4.0.
|
164
|
-
schemathesis-4.0.
|
160
|
+
schemathesis-4.0.6.dist-info/METADATA,sha256=qhqeHLsnB9ltBzTHOeqyd1aZElO-XGs2HTMs_2PYA6k,8471
|
161
|
+
schemathesis-4.0.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
162
|
+
schemathesis-4.0.6.dist-info/entry_points.txt,sha256=hiK3un-xfgPdwj9uj16YVDtTNpO128bmk0U82SMv8ZQ,152
|
163
|
+
schemathesis-4.0.6.dist-info/licenses/LICENSE,sha256=2Ve4J8v5jMQAWrT7r1nf3bI8Vflk3rZVQefiF2zpxwg,1121
|
164
|
+
schemathesis-4.0.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|