workspace / tests /test_F /test_sweep.py
AntonioJun's picture
Replace tests with local workspace contents
e8055cf verified
Raw
History Blame Contribute Delete
380 Bytes
"""Tests for harness/F/sweep.py -- CLI cartesian product wiring."""
import pytest
from harness.F import sweep
def test_csv_expands_all_dedups_and_rejects_unknowns():
assert sweep._csv("all", ("a", "b")) == ["a", "b"]
assert sweep._csv("b,a,b", ("a", "b")) == ["b", "a"]
with pytest.raises(ValueError, match="unknown values"):
sweep._csv("c", ("a", "b"))