You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Stephan Hoyer (Jira)" <ji...@apache.org> on 2021/04/27 19:52:00 UTC
[jira] [Created] (BEAM-12236) "An Example Test for a Composite
Transform" in Python is broken
Stephan Hoyer created BEAM-12236:
------------------------------------
Summary: "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
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.3.4#803005)