Skip to content

Commit

Permalink
Fix a newly added test from master
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Newton <[email protected]>
  • Loading branch information
Tom-Newton committed Dec 20, 2023
1 parent 8d1e734 commit 62c5209
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/flytekit/unit/core/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from collections import OrderedDict

import pytest

import flytekit
Expand Down Expand Up @@ -90,13 +92,13 @@ def t() -> str:
assert t() == "hello world"
assert t.get_config(settings=ss) == {}

ts = get_serializable_task(ss, t)
ts = get_serializable_task(OrderedDict(), ss, t)
assert ts.template.config == {"foo": "bar"}

@task
@my_decorator
def t() -> str:
return "hello world"

ts = get_serializable_task(ss, t)
ts = get_serializable_task(OrderedDict(), ss, t)
assert ts.template.config == {"foo": "baz"}

0 comments on commit 62c5209

Please sign in to comment.