Skip to content

Commit e7b8df9

Browse files
committed
FIX(sideffect.TX): old TC was not with unsatisfied in mind,
needed to give the sidefeect as input.
1 parent 40f802b commit e7b8df9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_graphkit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def increment(box):
471471
provides=modifiers.sideffect('c'))(increment),
472472
)
473473

474-
assert graph({'box': [0]})['box'] == [1, 2, 3]
474+
assert graph({'box': [0], 'a': True})['box'] == [1, 2, 3]
475475

476476
# Reverse order of functions.
477477
graph = compose('mygraph')(
@@ -485,7 +485,7 @@ def increment(box):
485485
provides=[modifiers.sideffect('c')])(extend),
486486
)
487487

488-
assert graph({'box': [0]})['box'] == [1, 1, 2]
488+
assert graph({'box': [0], 'a': None})['box'] == [1, 1, 2]
489489

490490

491491
def test_optional_per_function_with_same_output():

0 commit comments

Comments
 (0)