File size: 276 Bytes
b67c03f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import pytest
from src.runs import make_run_id, validate_run_id
def test_make_run_id_valid():
run_id = make_run_id("hello")
assert validate_run_id(run_id) == run_id
def test_invalid_run_id():
with pytest.raises(ValueError):
validate_run_id("bad/run")
|