Skip to content

Commit

Permalink
Adapt tests
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Grätz <[email protected]>
  • Loading branch information
Fabio Grätz committed Feb 29, 2024
1 parent 5aa854d commit e68a4e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/flytekit/unit/core/test_array_node_map_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,4 +305,4 @@ def my_mappable_task(a: int) -> typing.Optional[str]:
def wf(x: typing.List[int]):
array_node_map_task(my_mappable_task)(a=x).with_overrides(container_image="random:image")

assert wf.nodes[0].run_entity.container_image == "random:image"
assert wf.nodes[0]._container_image == "random:image"
2 changes: 1 addition & 1 deletion tests/flytekit/unit/core/test_map_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def my_mappable_task(a: int) -> typing.Optional[str]:
def wf(x: typing.List[int]):
map_task(my_mappable_task)(a=x).with_overrides(container_image="random:image")

assert wf.nodes[0].flyte_entity.run_task.container_image == "random:image"
assert wf.nodes[0]._container_image == "random:image"


def test_bounded_inputs_vars_order(serialization_settings):
Expand Down
2 changes: 1 addition & 1 deletion tests/flytekit/unit/core/test_node_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def wf() -> str:
bar().with_overrides(container_image="hello/world")
return "hi"

assert wf.nodes[0].flyte_entity.container_image == "hello/world"
assert wf.nodes[0]._container_image == "hello/world"


def test_override_accelerator():
Expand Down

0 comments on commit e68a4e8

Please sign in to comment.