devel/py-test-randomly 5.0.0 NetBSD
Pytest plugin to randomly order tests and control random.seed
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
f87cb49590- License
- modified-bsd
- Categories
- devel, python
- Package size
- 14.5 KiB, 47.6 KiB installed
Description
Pytest plugin to randomly order tests and control random.seed.
* 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 a 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 - factory boy uses faker for lots of data.
Install
Binary package:
pkgin install py311-test-randomly
From pkgsrc:
cd /usr/pkgsrc/devel/py-test-randomly && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 5.0.0 |
| NetBSD 10.1 aarch64 | 4.1.0 |
| SmartOS / illumos x86_64 | 5.0.0 |
| macOS 15 arm64 | 5.0.0 |
Dependencies
Run dependencies 2
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-test-randomly-5.0.0,py313-test-randomly-5.0.0,py314-test-randomly-5.0.0