conftest.py 215 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
import numpy as np
import pytest


@pytest.fixture(scope="function")
def rng():
    return np.random.default_rng()


@pytest.fixture(scope="function")
def rng_fixed_seed():
    return np.random.default_rng(seed=42)