Skip to content

Commit

Permalink
I should have checked if the code was correctly written
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Feb 11, 2025
1 parent ff0505b commit 9133a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/nodes/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def add_two(b: int = 10) -> int:
return result

@Workflow.wrap.as_macro_node
def add_three(macro: Composite | None = None, c: int) -> int:
def add_three(macro: Composite | None = None, c: int = 0) -> int:
macro.one = add_one(a=c)
macro.two = add_two(b=macro.one)
w = macro.two
Expand All @@ -36,7 +36,7 @@ def test_io_independence(self):
set(data.keys()), {"edges", "inputs", "nodes", "outputs"}
)
self.assertEqual(
data["inputs"], {'three__c': {'value': 1, 'type_hint': int}}
data["inputs"], {'three__c': {"default": 0, 'value': 1, 'type_hint': int}}
)


Expand Down

0 comments on commit 9133a6c

Please sign in to comment.