from pathlib import Path


def test_holt_winters_fit_does_not_use_removed_disp_argument() -> None:
    repo_root = Path(__file__).resolve().parents[3]
    source = (repo_root / "apps/api/src/services/dynamic_baseline_service.py").read_text()

    assert ".fit(optimized=True, disp=False)" not in source
    assert ".fit(optimized=True)" in source
