Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Jun 16, 2022
1 parent 33764df commit 6740aff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/flytekit/unit/core/test_composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def my_wf(a: int, b: str) -> (int, str, str):


def test_single_named_output_subwf():
nt = typing.NamedTuple("SubWfOutput", sub_int=int)
nt = NamedTuple("SubWfOutput", sub_int=int)

@task
def t1(a: int) -> nt:
Expand Down Expand Up @@ -70,7 +70,7 @@ def my_wf(a: int) -> int:

def test_lp_default_handling():
@task
def t1(a: int) -> typing.NamedTuple("OutputsBC", t1_int_output=int, c=str):
def t1(a: int) -> NamedTuple("OutputsBC", t1_int_output=int, c=str):
a = a + 2
return a, "world-" + str(a)

Expand Down

0 comments on commit 6740aff

Please sign in to comment.