Skip to content
Snippets Groups Projects

Resolve "Operation Replacement in a SFG"

Closed Kevin Scott requested to merge 17-operation-replacement-in-a-sfg into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -268,7 +268,7 @@ class TestReplaceOperations:
mad1 = MAD()
_sfg = sfg.replace_operations(['add1', 'mul1'], mad1)
assert _sfg.find_by_id('mad1') is not None
assert 'mad1' in _sfg._components_by_id.keys()
assert {add1, mul1} not in _sfg.operations
def test_replace_neg_add_with_sub(self):
@@ -282,7 +282,7 @@ class TestReplaceOperations:
sub1 = Subtraction()
_sfg = sfg.replace_operations(['add1', 'neg1'], sub1)
assert _sfg.find_by_id('sub1') is not None
assert 'sub1' in _sfg._components_by_id.keys()
assert {add1, neg1} not in _sfg.operations
def test_different_input_output_count(self, operation_tree):
Loading