Spec-Zone.ru › Polars

polars.testing.parametric.load_profile

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

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)

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/api/polars.testing.parametric.load_profile.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API