scitacean.testing.strategies#
Hypothesis strategies for generating datasets.
This module defines a number of Hypothesis strategies to generate test inputs.
Note
The datasets strategy can require a lot of time and memory due to the number of
parameters of Dataset.
This can trip up Hypothesis’ health checks, so you may need to disable them.
This can be done, e.g., by placing the following in conftest.py:
import hypothesis
hypothesis.settings.register_profile(
"scitacean",
suppress_health_check=[
hypothesis.HealthCheck.data_too_large,
hypothesis.HealthCheck.too_slow,
],
)
Select the ‘scitacean’ profile during tests using the
--hypothesis-profile=scitacean command line option.
Functions
|
A strategy for generating datasets. |
|
A strategy for generating email addresses as strings. |
|
A strategy for generating multiple email addresses as strings. |
|
A strategy for generating ORCID ids. |