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.67
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.67.tar.gz | 14.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyrig_fixtures-2.24.67-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.5 kB
Release files / pyrig_fixtures-2.24.67.tar.gz
| Download URL | pyrig_fixtures-2.24.67.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab9b0e6c4bbf6c7c0df7bba6cc5cfd2e906806e43ed910067ff376149ad5d85d
|
|
BLAKE2b-256 checksum How to use checksums |
fb5a72d2f54e65a818c48512d2a1bee04be1203f1208c075af41b6f67d9e94dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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.67-py3-none-any.whl
| Download URL | pyrig_fixtures-2.24.67-py3-none-any.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc52c020a425efbc03e7856bda1f1c6332b60a18ee0cd82d915f2747c2704274
|
|
BLAKE2b-256 checksum How to use checksums |
a88f3807285e276806faf1db2f8970f494f8b3cd442c44a5c162c973cb4548ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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}
|