feat: add BLIF Flow v2 shadow compare cutover layer
This commit is contained in:
@@ -80,7 +80,14 @@ def test_off_mode_is_a_noop_without_deriving_or_connecting():
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.parametrize("mode", ["compare", "authoritative", "invalid"])
|
||||
@pytest.mark.parametrize("mode", ["authoritative", "invalid"])
|
||||
def test_unimplemented_modes_fail_closed(mode):
|
||||
with pytest.raises(RuntimeError, match="not implemented"):
|
||||
with pytest.raises(RuntimeError, match="disabled"):
|
||||
rebuild_blif_flow_v2_projection(mode=mode, derived_rows=[])
|
||||
|
||||
|
||||
def test_compare_mode_uses_the_same_additive_projection_path():
|
||||
from inspect import getsource
|
||||
source = getsource(rebuild_blif_flow_v2_projection)
|
||||
assert 'selected_mode not in {"shadow", "compare"}' in source
|
||||
assert '"mode": selected_mode' in source
|
||||
|
||||
Reference in New Issue
Block a user