pypi schemathesis 4.1.0
Release 4.1.0

latest releases: 4.1.4, 4.1.3, 4.1.2...
18 days ago

🚀 Schemathesis 4.1 is out 🚀

The main addition: Automatic Link Inference for Stateful Testing

Schemathesis now generates OpenAPI links by analyzing Location headers from API responses.

How it works:

  • Collects Location headers during earlier test phases (e.g., POST /users → Location: /users/123)
  • Generates parameter extraction rules (userId from Location)
  • Enables automatic operation chaining in stateful phase (POST /users → GET /users/{id} → PUT /users/{id})

This is a basic inference mechanism - more sophisticated heuristics for discovering operation relationships will be added in future releases.

Other notable changes:

🚀 Added

  • --max-redirects CLI & config file option. #712
  • enabled config file option to disable all test phases. #2951
  • Support PyPy3 on a best effort basis without running tests in CI due to long running time. #1079

🐛 Fixed

  • Ignored codec for header generation.
  • Properly try to load schema as YAML if the Content-Type header is unknown.

🔧 Changed

  • before_call hooks now accept kwargs as a regular parameter instead of **kwargs. There is a backward compatibility shim for existing hooks with **kwargs signatures. The old calling convention will be removed in Schemathesis 5.0. #3028

Don't miss a new schemathesis release

NewReleases is sending notifications on new releases.