Skip to content
Snippets Groups Projects
Commit dab6f458 authored by Kevin's avatar Kevin
Browse files

cleanup test case

parent 729c11be
No related branches found
No related tags found
1 merge request!44Resolve "Operation Replacement in a SFG"
Pipeline #14842 passed
...@@ -268,7 +268,7 @@ class TestReplaceOperations: ...@@ -268,7 +268,7 @@ class TestReplaceOperations:
mad1 = MAD() mad1 = MAD()
_sfg = sfg.replace_operations(['add1', 'mul1'], mad1) _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 assert {add1, mul1} not in _sfg.operations
def test_replace_neg_add_with_sub(self): def test_replace_neg_add_with_sub(self):
...@@ -282,7 +282,7 @@ class TestReplaceOperations: ...@@ -282,7 +282,7 @@ class TestReplaceOperations:
sub1 = Subtraction() sub1 = Subtraction()
_sfg = sfg.replace_operations(['add1', 'neg1'], sub1) _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 assert {add1, neg1} not in _sfg.operations
def test_different_input_output_count(self, operation_tree): def test_different_input_output_count(self, operation_tree):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment