Skip to content

Commit

Permalink
Modify tests to reflect new expected behaviour
Browse files Browse the repository at this point in the history
Co-authored-by: Garry O'Donnell <garry.o'[email protected]>
  • Loading branch information
abbiemery and garryod committed Jul 22, 2022
1 parent bdad12d commit ab37bfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/core/management/test_event_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ def wiring_struct():
ComponentID("Mid1"): {
PortID("Mid1>1"): {ComponentPort(ComponentID("In1"), PortID("In1<1"))}
},
ComponentID("In1"): {},
}


@pytest.fixture
def inverse_wiring_struct():
return {
ComponentID("Out1"): {},
ComponentID("Out2"): {},
ComponentID("Mid1"): {
PortID("Mid1<1"): ComponentPort(ComponentID("Out1"), PortID("Out1>1")),
PortID("Mid1<2"): ComponentPort(ComponentID("Out2"), PortID("Out2>1")),
Expand Down Expand Up @@ -136,6 +139,7 @@ def test_event_router_output_components(event_router: EventRouter):

def test_event_router_component_tree(event_router: EventRouter):
assert {
"In1": set(),
"Out1": {"Mid1"},
"Out2": {"Mid1", "In1"},
"Mid1": {"In1"},
Expand Down

0 comments on commit ab37bfe

Please sign in to comment.