pytest-testing-files-generator
The pytest plugin of testing-files-generator: real files of exact sizes and formats for your tests, and what the system under test should do with each one.
This package has no code of its own. It installs testing-files-generator of the same version, and pytest loads its plugin on its own. Installing either package gives the same thing:
pip install pytest-testing-files-generator
import re
import pytest
from playwright.sync_api import expect
from testing_files_generator import file_set
uploads = file_set(preset="upload-validation", options={"limit": "2mb", "bulk": 0})
@pytest.mark.parametrize("file", uploads.params())
def test_upload(file, page):
page.goto("/upload")
page.get_by_label("File").set_input_files(file.path())
page.get_by_role("button", name="Upload").click()
status = page.get_by_role("status")
expect(status).to_have_text(re.compile("Uploaded|Refused"))
file.check("accept" if "Uploaded" in status.text_content() else "reject")
Everything else is in the README of testing-files-generator.
The tfg website lists the formats and presets, has sample files to download, and explains the commands, recipes and manifest.
This package is under the Mozilla Public License 2.0, in LICENSE.
Metadata
Release files for pytest-testing-files-generator 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_testing_files_generator-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_testing_files_generator-0.6.0-py3-none-any.whl |
Release files / pytest_testing_files_generator-0.6.0-py3-none-any.whl
| Download URL | pytest_testing_files_generator-0.6.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7bfebb2bec6f717f85650508bfc83170d7237a3ac06fd4d85cbc6e82bdc41df
|
|
BLAKE2b-256 checksum How to use checksums |
a3ccf22d344dca091909f5556ff97dd2263de286c3f11a0ea2d5d7ca84e390ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for pytest-testing-files-generator 0.6.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.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for pytest_testing_files_generator-0.6.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA 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.