You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2020/07/14 17:39:46 UTC

[GitHub] [beam] robertwb commented on a change in pull request #12246: Add Python snippets in testing guide.

robertwb commented on a change in pull request #12246:
URL: https://github.com/apache/beam/pull/12246#discussion_r454529383



##########
File path: website/www/site/content/en/documentation/pipelines/test-your-pipeline.md
##########
@@ -284,3 +345,32 @@ public class WordCountTest {
     }
 }
 {{< /highlight >}}
+
+{{< highlight py >}}
+class WordCountTest(unittest.TestCase):
+
+  # Our input data, which will make up the initial PCollection.
+  WORDS = [

Review comment:
       Mostly it's for consistency with the Java code and context, and it is a convention to use for globals even in Python. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org