代码提交
This commit is contained in:
1 parent
bf42a48fcc
commit
75f288b241
17 files changed
+65
-69
No files matched your search
@@ -101,10 +101,12 @@ def test_event_envelope_accepts_snake_or_camel_aliases() -> None:
|
||||
|
||||
|
||||
def test_node_run_id_is_deterministic() -> None:
|
||||
assert make_node_run_id("research_brand", 2) == "research_brand-attempt2"
|
||||
assert parse_node_run_id("research_brand-attempt2") == ("research_brand", 2)
|
||||
assert make_node_run_id("rcr_x", "research_brand", 2) == "rcr_x-research_brand-attempt2"
|
||||
assert parse_node_run_id("rcr_x-research_brand-attempt2") == ("rcr_x-research_brand", 2)
|
||||
with pytest.raises(ValueError):
|
||||
make_node_run_id("research_brand", 0)
|
||||
make_node_run_id("rcr_x", "research_brand", 0)
|
||||
with pytest.raises(ValueError):
|
||||
make_node_run_id("", "research_brand", 1)
|
||||
with pytest.raises(ValueError):
|
||||
parse_node_run_id("random-uuid")
|
||||
|
||||
|
||||
Reference in new issue
Block a user