[QUESTION] Schemathesis only ran a single POST test and marked as success, when a failure would be expected #2057
Labels
Status: Needs more info
Proceeding requires additional info from the author
Type: Bug
Errors or unexpected behavior
Checklist
Describe the bug
During positive testing against a simple POST that does not send a request body we receive back a 415 (unsupported media type). This test is marked as success and no further testing on the operation are carried out. The --checks switch was not used in the test run.
The mock was expecting a request body, responding with a 415.
The question is why only a single test which passed?
I assume that as no request body was in the specification, the test data was limited to a single test.
But why the pass?
To Reproduce
🚨 Mandatory 🚨: Steps to reproduce the behavior:
st run sampleapi.yaml --base-url http://localhost:8080/crawl --cassette-path sampleapi-results.yaml
Please include a minimal API schema causing this issue:
Environment
Additional context
Attached cassette output
st-output.yaml.zip
The text was updated successfully, but these errors were encountered: