kartothek.core.testing module

kartothek.core.testing.cm_frozen_time(time_to_freeze)[source]

Context manager to monkeypatch kartothek.core._time.* to return a fixed datetime value time_to_freeze.

kartothek.core.testing.get_dataframe_alltypes()[source]

Return a pandas DataFrame of length one with a column for each commonly used data types

kartothek.core.testing.get_dataframe_not_nested()[source]
kartothek.core.testing.get_numpy_array_strategy(shape=10, exclude_dtypes=None, unique=False, sort=False, allow_nan=True)[source]
kartothek.core.testing.get_scalar_dtype_strategy(exclude=None)[source]

A hypothesis strategy yielding