Skip to content
Snippets Groups Projects

Changed test layout and refactorized some tests for OutputPort

Merged Kevin Scott requested to merge test-refactoring into develop
1 unresolved thread
Files
13
@@ -17,11 +17,10 @@ def create_operation(_type, dest_oper, index, **kwargs):
@pytest.fixture
def operation_tree():
"""
Return a addition operation connected with 2 constants.
>---C---+
---A
>---C---+
"""Return a addition operation connected with 2 constants.
---C---+
---A
---C---+
"""
add_oper = Addition()
create_operation(Constant, add_oper, 0, value=2)
@@ -30,15 +29,14 @@ def operation_tree():
@pytest.fixture
def large_operation_tree():
"""
Return a constant operation connected with a large operation tree with 3 other constants and 3 additions.
>---C---+
---A---+
>---C---+ |
+---A
>---C---+ |
---A---+
>---C---+
"""Return a constant operation connected with a large operation tree with 3 other constants and 3 additions.
---C---+
---A---+
---C---+ |
+---A
---C---+ |
---A---+
---C---+
"""
add_oper = Addition()
add_oper_2 = Addition()
Loading