polars.testing.parametric.load_profile#

polars.testing.parametric.load_profile(
profile: Literal['fast', 'balanced', 'expensive'] | int = 'fast',
*,
set_environment: bool = False,
) None[source]#

Load a named (or custom) hypothesis profile for use with the parametric tests.

Parameters:
profile{str, int}, optional

Name of the profile to load; one of “fast”, “balanced”, “expensive”, or the integer number of iterations to run (which will create and register a custom profile with that value).

set_environmentbool, default False

If True, also set the environment variable POLARS_HYPOTHESIS_PROFILE to the given profile name/value.

Examples

>>> # load a custom profile that will run with 1500 iterations
>>> from polars.testing.parametric import load_profile
>>> load_profile(1500)