polars.testing.parametric.load_profile#
- polars.testing.parametric.load_profile( ) None [source]#
Load a named (or custom) hypothesis profile for use with the parametric tests.
Warning
This functionality is currently considered unstable. It may be changed at any point without it being considered a breaking change.
- 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)