Skip to content

Commit 3e06148

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

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
@@ -517,7 +517,7 @@ def increment(box):
517517
provides=modifiers.sideffect('c'))(increment),
518518
)
519519

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

522522
# Reverse order of functions.
523523
graph = compose('mygraph')(
@@ -531,7 +531,7 @@ def increment(box):
531531
provides=[modifiers.sideffect('c')])(extend),
532532
)
533533

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

536536

537537
def test_optional_per_function_with_same_output():

0 commit comments

Comments
 (0)