Skip to content

Commit

Permalink
remove importer v2 compat test
Browse files Browse the repository at this point in the history
  • Loading branch information
ji-yaqi committed Nov 17, 2021
1 parent b7ab0a7 commit 9b2da38
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions sdk/python/kfp/compiler/v2_compatible_compiler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,20 +160,6 @@ def my_pipeline():
mode=v1dsl.PipelineExecutionMode.V2_COMPATIBLE).compile(
pipeline_func=my_pipeline, package_path='result.json')

def test_use_importer_should_error(self):

@dsl.pipeline(name='test-pipeline')
def my_pipeline():
dsl.importer(artifact_uri='dummy', artifact_class=Artifact)

with self.assertRaisesRegex(
ValueError,
'dsl.importer is not supported with v1 compiler.',
):
compiler.Compiler(
mode=v1dsl.PipelineExecutionMode.V2_COMPATIBLE).compile(
pipeline_func=my_pipeline, package_path='result.json')


if __name__ == '__main__':
unittest.main()

0 comments on commit 9b2da38

Please sign in to comment.