Skip to content

v2.1.0 — pytest plugin + seed determinism

Choose a tag to compare

@Yaniv2809 Yaniv2809 released this 13 Apr 19:19
· 13 commits to main since this release

What's new in v2.1.0

pytest plugin — zero-config fixtures

The forge fixture is now auto-available in every test with no configuration needed.

Declare model fixtures in one line from conftest.py:

from fixtureforge.pytest_plugin import forge_fixture

forge_fixture(User,  count=10, seed=42)   # → fixture "users"
forge_fixture(Order, count=50, seed=42)   # → fixture "orders"

Deterministic CI mode

forge = Forge(use_ai=False, seed=42)
# Same seed = identical output on every run

Verbose mode — see exactly where each value comes from

forge = Forge(verbose=True)
# [structural] id    = 1
# [faker]      email = 'user@example.com'
# [ai]         bio   = 'Passionate developer...'

Install: pip install fixtureforge==2.1.0