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 builds this project,
initializes a fresh scratch project with it installed as a pyrig plugin via
pyrig init, and verifies everything works. Runs once per test session even under pytest-xdist. Skip it with the--skip-init-pyrig-projectpytest flag (--sippfor short).
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.
Release files for pyrig-fixtures 2.24.33
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyrig_fixtures-2.24.33.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyrig_fixtures-2.24.33-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.1 kB
Release files / pyrig_fixtures-2.24.33.tar.gz
| Download URL | pyrig_fixtures-2.24.33.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df8f0c439f7c10f3f737fcdaa110cc3d78cbc643a99fbb4c392dafac3ce5dfec
|
|
BLAKE2b-256 checksum How to use checksums |
88581359b5c0105924adaba7b29ff3ac1470de791bb74bc43154ef25cb69a7ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / pyrig_fixtures-2.24.33-py3-none-any.whl
| Download URL | pyrig_fixtures-2.24.33-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
956be42f07f027d347998a27f621d1db059692809c63fc3421112e6ff11bc626
|
|
BLAKE2b-256 checksum How to use checksums |
773d433815b38f9fb6fdfeb0d258057e2814ae03ac324739ba6658f6205e8c53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|