# test_stats_helpers.py
from src.stats_helpers import mean_of, flag_outliers

def test_mean_of_basic_case():
    assert mean_of([1, 2, 3, 4]) == 2.5

def test_mean_of_raises_on_empty_list():
    import pytest
    with pytest.raises(ValueError):
        mean_of([])

def test_flag_outliers_default_cutoff():
    assert flag_outliers([0.1, 0.9, 0.2], cutoff=0.6) == [1]
$ pytest
===================== test session starts ======================
collected 3 items
test_stats_helpers.py ...                                  [100%]
====================== 3 passed in 0.04s ========================
