From 361142bc5bf131d57ed90150cfb7419cf9cb8861 Mon Sep 17 00:00:00 2001 From: Judah Rand <17158624+judahrand@users.noreply.github.com> Date: Wed, 8 Sep 2021 15:15:31 +0100 Subject: [PATCH] Add test for empty `packages_to_install_command` --- sdk/python/kfp/components_tests/test_python_op.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk/python/kfp/components_tests/test_python_op.py b/sdk/python/kfp/components_tests/test_python_op.py index f139ddc59203..5e498f1a5d8f 100644 --- a/sdk/python/kfp/components_tests/test_python_op.py +++ b/sdk/python/kfp/components_tests/test_python_op.py @@ -1158,6 +1158,12 @@ def test_packages_to_install_feature(self): self.helper_test_component_using_local_call( task_factory2, arguments={}, expected_output_values={}) + task_factory3 = comp.func_to_container_op( + dummy_in_0_out_0, packages_to_install=[], install_kfp_package=False) + + self.helper_test_component_using_local_call( + task_factory3, arguments={}, expected_output_values={}) + def test_component_annotations(self): def some_func():