polars.testing.parametric.set_profile#

polars.testing.parametric.set_profile(profile: Literal['fast', 'balanced', 'expensive'] | int) None[source]#

Set the env var POLARS_HYPOTHESIS_PROFILE to the given profile name/value.

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).

Examples

>>> # prefer the 'balanced' profile for running parametric tests
>>> from polars.testing.parametric import set_profile
>>> set_profile("balanced")