Schemathesis

Latest version: v3.30.4

Safety actively analyzes 641872 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 45

3.22.1

:bug: Fixed

- Internal error during network error handling. 1933

3.22.0

I am pleased to announce the latest release of Schemathesis :tada:

**Release Highlights**:
- Enhanced data generation control with the ability to set encoding for all generated strings.
- Improved GraphQL support with out-of-the-box compatibility for 9 popular scalar types.
- Updated Docker images featuring Python 3.12, `arm64` builds, and a new `bookworm`-based image.

:rocket: Added

- Support for `hypothesis-jsonschema==0.23`.
- A way to control what characters are used for string generation. 1142, 1286, 1562, 1668
- Display the total number of collected links in the CLI output. 1383
- `arm64` Docker builds. 1740
- Use Python 3.12 in Docker images.
- Store Docker image name in `Metadata`.
- GraphQL scalar strategies for `Date`, `Time`, `DateTime`, `IP`, `IPv4`, `IPv6`, `Long`, `BigInt` and `UUID`. 1690

:wrench: Changed

- Bump the minimum supported Hypothesis version to `6.84.3`.
- Bump the minimum supported `jsonschema` version to `4.18.0`.
- Bump the minimum supported `hypothesis_graphql` version to `0.11.0`.
- Use the same random seed for all tests in CLI. 1384
- Improve serialization error messages in CLI.
- Store skip reason in the runner events.
- Build `bookworm`-based Debian Docker images instead of `buster`-based.
- Improve error message on unknown scalar types in GraphQL.
- Better auto-detection of GraphQL schemas.
- Display parsing errors for schemas that are expected to be JSON or YAML.

:wastebasket: Deprecated

- Using the `--show-errors-tracebacks` CLI option. Use `--show-trace` instead.

:bug: Fixed

- Internal error when a non-existing schema file is passed together with `--base-url`. 1912
- Internal error during schema loading from invalid URLs.
- Ignore incompatible GraphQL checks in CLI rather than fail the whole test run. 1918

:fire: Removed

- Support for Python 3.7.
- Unnecessary dependencies on `typing-extensions` and `importlib-metadata`.

3.21.2

:rocket: Added

- Support for `hypothesis>=6.90.1`.

3.21.1

:rocket: Added

- Basic support for `httpx` in `Case.validate_response`.

:wrench: Changed

- Restore the ability to import `NOT_SET` from `schemathesis.utils`. 1890

3.21.0

🎉 I am excited to announce the latest release of Schemathesis! 🎉

This version significantly improves the CLI clarity and responsiveness, making API testing simpler!

Here is CLI output looks like now:

<p align="center">
<img src="https://github.com/schemathesis/schemathesis/assets/1236561/2cae736d-32f0-4e24-9054-512ee0091970" alt="Schemathesis Demo"/>
</p>

PR comments became better too!

![service_github_report](https://github.com/schemathesis/schemathesis/assets/1236561/f496354b-c217-4d83-b003-fdaf83b715f0)

:rocket: Added

- Add Python 3.12 compatibility. 1809
- Separate command for report upload.

:wrench: Changed

- Generated binary data inside `Case.body` is wrapped with a custom wrapper - `Binary` in order to simplify
compatibility with `hypothesis-jsonschema`.
- Do not modify `Case.body` inside `Case.as_requests_kwargs` when serializing multipart data.
- **INTERNAL**: Moved heavy imports inside functions to improve CLI startup time by 4.3x, not affecting overall execution speed. 1509
- Improved messaging for loading hooks and WSGI application issues.
- Refined documentation strings for CLI options.
- Added an error message if an internal error happened inside CLI event handler.
- Unified CLI messages for errors arising from network, configuration, and Hypothesis-related issues. 1600, 1607, 1782, 1835
- Try to validate JSON data even if there is no proper `Content-Type` header. 1787
- Refined failure reporting for clarity. 1784, 1785, 1790, 1799, 1800

3.20.2

:bug: Fixed

- Incorrect documentation & implementation for enabling experimental features in `pytest`.

Page 6 of 45

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.