a b/tests/conftest.py
1
import numpy as np
2
import pandas as pd
3
import pytest
4
5
from src.config import settings
6
from src.cvd_risk_scores.modules import typings
7
8
9
@pytest.fixture
10
def rng() -> np.random.Generator:
11
    """Construct a new Random Generator using the seed specified in settings.
12
13
    Returns:
14
        numpy.random.Generator: a Random Generator based on BitGenerator(PCG64)
15
    """
16
    return np.random.default_rng(settings.SEED)
17