You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by xq...@apache.org on 2025/04/21 14:30:26 UTC
(beam) branch master updated: Minor fixes to yaml testing docs. (#34618)
This is an automated email from the ASF dual-hosted git repository.
xqhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new de7f1bd85ae Minor fixes to yaml testing docs. (#34618)
de7f1bd85ae is described below
commit de7f1bd85ae3d98f44a642dfa07dab8836b49217
Author: Robert Bradshaw <ro...@gmail.com>
AuthorDate: Mon Apr 21 07:30:20 2025 -0700
Minor fixes to yaml testing docs. (#34618)
---
website/www/site/content/en/documentation/sdks/yaml-testing.md | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/website/www/site/content/en/documentation/sdks/yaml-testing.md b/website/www/site/content/en/documentation/sdks/yaml-testing.md
index 4066e18f5ec..66b804218be 100644
--- a/website/www/site/content/en/documentation/sdks/yaml-testing.md
+++ b/website/www/site/content/en/documentation/sdks/yaml-testing.md
@@ -29,7 +29,7 @@ pipeline can be expected to be well tested, it can be important to have tests
that ensure the pipeline as a whole behaves as expected. This is particularly
true for transforms that contain non-trivial UDF logic.
-# Whole pipeline tests
+## Whole pipeline tests
For example, consider the example word count pipeline.
@@ -126,10 +126,8 @@ python -m apache_beam.yaml.main \
--test_suite=test_file.yaml
```
-Neither the actual Read transform nor Write transform from the original
-pipelines are executed when running the test, but all intermediate transforms
-are. For hermeticity, we require that all inputs (with the exception of
-`Create` that are needed to compute the expected outputs are explicitly mocked;
+For hermeticity, we require that all inputs (with the exception of
+`Create`) that are needed to compute the expected outputs are explicitly mocked;
to explicitly allow a sources to be executed as part of a test their names or
types can be enumerated in an `allowed_sources` attribute of the test
specification.
@@ -137,7 +135,7 @@ specification.
## Pipeline fragment tests
-One can also tests a portion of a pipeline using the `mock_inputs` and
+One can also test a portion of a pipeline using the `mock_inputs` and
`expected_outputs` section of a test, for example
```