PyFixtures
Pytest style fixtures outside of Pytest.
import asyncio
from pathlib import Path
from pyfixtures import fixture, FixtureScope
@fixture
def tmpdir() -> path:
path = Path("temp")
path.mkdir()
try:
yield path
finally:
path.unlink()
def mk_temp_files(tmpdir: Path):
tmp_file = tmpdir/"tempfile.txt"
tmp_file.touch()
async def main():
async with FixtureScope() as scope:
operation = await scope.bind(mk_temp_files)
await operation()
asyncio.run(main())
Metadata
Release files for pyfixtures 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyfixtures-1.1.0.tar.gz | 8.1 kB | Without provenance | Details for pyfixtures-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyfixtures-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyfixtures-1.1.0-py3-none-any.whl |
Total release size: 17.6 kB
Release files / pyfixtures-1.1.0.tar.gz
| Download URL | pyfixtures-1.1.0.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58700c1abef58df4f520a2fc2099541971199e3fb707965f64b48adc442b9bba
|
|
BLAKE2b-256 checksum How to use checksums |
927c66ff347ebce9eea833fc2c17a49e2614c90eff5e27e7a1662d060d7239a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.13 Linux/5.13.0-1025-azure
|
Release files / pyfixtures-1.1.0-py3-none-any.whl
| Download URL | pyfixtures-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bec76935532d9d98fa1c3f9f42175f915b0f8c8b12d3f08313a57c73c5116b0b
|
|
BLAKE2b-256 checksum How to use checksums |
50b7db6cf5e90a3c9ea6247f76617d7be9e21651ef93abc8bee2b82c85b3b073
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.13 Linux/5.13.0-1025-azure
|
Security for pyfixtures 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.