Simple factoryboy random state management
Project description
Simple factoryboy random state management
Features
Show the random state of factoryboy for failing tests with –show-state
Set random state through environment variable or with cli option –set-state
Requirements
Python 3
Installation
You can install “pytest-factoryboy-state” via pip from PyPI:
$ pip install pytest-factoryboy-state
Usage
Show the random state of factoryboy on test failure with:
$ pytest --show-state
Rerun the tests with a given state:
$ pytest --set-state=<factoryboy_state>
You can also set the environment variable FACTORYBOY_STATE to the state and run pytest as usual.
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the MIT license, “pytest-factoryboy-state” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest-factoryboy-state-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81991f5e145abb17d9596c1ab0b9e546519da3b82a6fc4ba6923e45c2fe51435 |
|
MD5 | 11be68a8dde24ec0f630081760ae2224 |
|
BLAKE2b-256 | ed27e932b4400e5c44b25513a866ab586bbe4369a30dbaa10a50e57dac287e27 |
Hashes for pytest_factoryboy_state-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c9704b3fd6936db2c2169bcee9e332cf3c9768b414ec431bc00da4fe6be7811 |
|
MD5 | cc48b1c4d0781b8b067ec5f598a06e0e |
|
BLAKE2b-256 | cf272a4c21008ce44ddb05ab2d113953cfbf51985abc37ebff8c6cf3a309fb2b |