respy.conftest
This module includes code to configure pytest.
fresh_directory(tmpdir)
fresh_directory
Each test is executed in a fresh directory.
patch_doctest_namespace(doctest_namespace)
patch_doctest_namespace
Patch the namespace for doctests.
seed()
seed
Create placeholder value for function argument seed to be overwritten.
pytest_addoption(parser)
pytest_addoption
Add a custom option to the pytest call.
pytest_generate_tests(metafunc)
pytest_generate_tests
Re-run some tests with different seeds by incrementing the base seed.
respy.conftest.
This function adds some packages to namespace of every doctest.
Simply use
$ pytest --n-random-tests=n
to restrict running each random test with n increments of the base seed given by pytest-randomly.
The base seed is given by pytest-randomly in each session derived from the timestamp. You can use five as the seed value with
$ pytest --randomly-seed=5
Then, tests with certain parameter names are parameterized with incremented seed values (5, 6, 7, 8, …). Existing parameterizations are extended.
respy.config
respy.data