File size: 808 Bytes
b0add2b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""Shared pytest fixtures."""

import pytest

from src.stream.generator import generate_stream
from src.stream.models import Observation


@pytest.fixture
def stream_params_short():
    """Short phase lengths for fast tests."""
    return {
        "phase_a_length": 100,
        "phase_b_length": 80,
        "phase_c_length": 100,
        "drift_magnitude": 0.3,
        "anomaly_rate": 0.08,
        "point_ratio": 0.6,
        "delay": 0.0,
        "seed": 42,
    }


@pytest.fixture
def stream_params_phase_a_only():
    """Phase A only for normality tests."""
    return {
        "phase_a_length": 200,
        "phase_b_length": 0,
        "phase_c_length": 0,
        "drift_magnitude": 0.3,
        "anomaly_rate": 0.05,
        "point_ratio": 0.6,
        "delay": 0.0,
        "seed": 123,
    }