Skip to main content

Simple factoryboy random state management

Project description

PyPI version Python versions

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-factoryboy-state-0.1.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_factoryboy_state-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pytest-factoryboy-state-0.1.0.tar.gz.

File metadata

  • Download URL: pytest-factoryboy-state-0.1.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for pytest-factoryboy-state-0.1.0.tar.gz
Algorithm Hash digest
SHA256 81991f5e145abb17d9596c1ab0b9e546519da3b82a6fc4ba6923e45c2fe51435
MD5 11be68a8dde24ec0f630081760ae2224
BLAKE2b-256 ed27e932b4400e5c44b25513a866ab586bbe4369a30dbaa10a50e57dac287e27

See more details on using hashes here.

File details

Details for the file pytest_factoryboy_state-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_factoryboy_state-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for pytest_factoryboy_state-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c9704b3fd6936db2c2169bcee9e332cf3c9768b414ec431bc00da4fe6be7811
MD5 cc48b1c4d0781b8b067ec5f598a06e0e
BLAKE2b-256 cf272a4c21008ce44ddb05ab2d113953cfbf51985abc37ebff8c6cf3a309fb2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page