File size: 536 Bytes
e3584eb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from benchmark.execution_order import generate_execution_order
def test_execution_order_reproducibility():
order1 = generate_execution_order(10, seed=42)
order2 = generate_execution_order(10, seed=42)
assert order1 == order2
assert len(order1) == 10
# Check that it alternates/mixes orders
plains_first = [x for x in order1 if x[0] == "plain"]
rifs_first = [x for x in order1 if x[0] == "rif"]
# Assert we have both combinations
assert len(plains_first) > 0
assert len(rifs_first) > 0
|