Package Info

python-pytest-randomly


Pytest plugin to randomly order tests and control random.seed


Unspecified

Pytest plugin to randomly order tests and control random.seed.

Features:

  • Randomly shuffles the order of test items. This is done first at the level of modules, then at the level of test classes (if you have them), then at the order of functions. This also works with things like doctests.
  • Resets random.seed() at the start of every test case and test to fixed number - this defaults to time.time() from the start of your test run, but you can pass in --randomly-seed to repeat a randomness-induced failure.
  • If factory boy is installed, its random state is reset at the start of every test. This allows for repeatable use of its random 'fuzzy' features.
  • If faker is installed, its random state is reset at the start of every test. This is also for repeatable fuzzy data in tests.
  • If numpy is installed, its random state is reset at the start of every test.

License: BSD-3-Clause
URL: https://github.com/pytest-dev/pytest-randomly

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
3.3.1-bp155.2.12 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pytest-randomly
3.3.1-bp154.1.23 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pytest-randomly
3.3.1-bp153.1.21 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pytest-randomly
3.3.1-bp152.1.1 info GA Release 2020-05-04 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pytest-randomly