Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import random as rand
from collections.abc import Mapping
from pathlib import Path
from typing import Callable
Expand Down Expand Up @@ -29,6 +30,13 @@ def patch_broadcast_compat_data():
yield


@fixture(autouse=True)
def random():
"""Set random seed for all tests to make them reproducible."""
rand.seed(123)
np.random.seed(123)


def compare_df(
expected: DataFrame,
actual: DataFrame,
Expand Down