[
https://issues.apache.org/jira/browse/BEAM-12236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17549270#comment-17549270
]
Danny McCormick commented on BEAM-12236:
----------------------------------------
This issue has been migrated to https://github.com/apache/beam/issues/20876
> "An Example Test for a Composite Transform" in Python is broken
> ---------------------------------------------------------------
>
> Key: BEAM-12236
> URL: https://issues.apache.org/jira/browse/BEAM-12236
> Project: Beam
> Issue Type: Bug
> Components: website
> Affects Versions: 2.28.0
> Reporter: Stephan Hoyer
> Priority: P3
>
> The example test code does not runĀ [1]:
> # Python reports a Syntax error "SyntaxError: unexpected EOF while parsing"
> # Missing imports: "import unittest" and "import apache_beam as beam"
> # After fixing the above issues, I get: "AttributeError: module
> 'apache_beam' has no attribute 'TestPipeline'". It looks like this import is
> just wrong. I tracked it down via code search in
> "apache_beam.testing.test_pipeline"
> [1]
> https://beam.apache.org/documentation/pipelines/test-your-pipeline/#an-example-test-for-a-composite-transform
--
This message was sent by Atlassian Jira
(v8.20.7#820007)