pyrig-fixtures
A pyrig plugin that provides pytest fixtures support.
Overview
pyrig-fixtures is a pyrig plugin that provides a library of reusable pytest fixtures for testing pyrig projects. Its fixtures — and any contributed by packages that depend on it — are made available automatically in every project that installs it.
What it adds
- A fixture library — ready-made fixtures for common testing needs: temporary project trees, module and package creation, config-file testing, CLI-command assertions, and environment gating.
- Automatic, cross-package availability — fixtures are registered as a pytest plugin so they work without imports, and any installed package that depends on pyrig-fixtures contributes its own fixtures the same way.
- A scaffolding command —
pyrig mk fixture <name>adds a new fixture stub to your project's shared fixtures module. - An end-to-end init check — an autouse fixture that starts a new pyrig project
with
pyrig initand checks that it works if your project was added as a plugin. Skip it withpytest --skip-pyrig-fixtures-init-checkflag.
Usage
uv add pyrig-fixtures --dev
uv run pyrig sync
Documentation
Full documentation, including the auto-generated API reference, is available on the documentation site.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrig_fixtures-2.23.1.tar.gz.
File metadata
- Download URL: pyrig_fixtures-2.23.1.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36c6fcee1fcda9273818e9c728dcf8f633c43fe1fd311905f54d857e6b121c44
|
|
| MD5 |
395846ebffc5e69995992a5d090b9511
|
|
| BLAKE2b-256 |
0fa8d65630476602fd9d724db3d4a2abd43e33e4b4c437905fb6ce78562d9520
|
File details
Details for the file pyrig_fixtures-2.23.1-py3-none-any.whl.
File metadata
- Download URL: pyrig_fixtures-2.23.1-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a15136c8a3ab29b13cee49d1fbb06c34c87a28f9f344c84cd0c4c5a0c0be4c8
|
|
| MD5 |
00542affeccce23b31cfe6d318b85b4c
|
|
| BLAKE2b-256 |
fcab6d2edd0fd19feaa93a5a83f2aa878e294dc0d5a1a74a2ff6ca132e42ab14
|