apache / apache/beam

Python TestPipeline example code does not execute

Open
#20,521 0 comments 0 reactions 0 assignees View on GitHub
bug P3 website
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

The example python code in the last section of  [https://beam.apache.org/documentation/pipelines/test-your-pipeline/](https://beam.apache.org/documentation/pipelines/test-your-pipeline/) does not work. TestPipeline is not in beam, it is in beam.pipeline_test and the "with" takes an object, not a class (ie.  there needs to be a pair of brackets).  I suspect there are other issues, but those are the ones which I have noticed.

Imported from Jira [BEAM-10767](https://issues.apache.org/jira/browse/BEAM-10767). Original Jira may contain additional context.
Reported by: ensslen.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.