File size: 380 Bytes
e8055cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | """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"))
|