Skip to content

Commit de7f1bd

Browse files
authored
Minor fixes to yaml testing docs. (#34618)
1 parent 2be5a61 commit de7f1bd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

website/www/site/content/en/documentation/sdks/yaml-testing.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pipeline can be expected to be well tested, it can be important to have tests
2929
that ensure the pipeline as a whole behaves as expected. This is particularly
3030
true for transforms that contain non-trivial UDF logic.
3131

32-
# Whole pipeline tests
32+
## Whole pipeline tests
3333

3434
For example, consider the example word count pipeline.
3535

@@ -126,18 +126,16 @@ python -m apache_beam.yaml.main \
126126
--test_suite=test_file.yaml
127127
```
128128

129-
Neither the actual Read transform nor Write transform from the original
130-
pipelines are executed when running the test, but all intermediate transforms
131-
are. For hermeticity, we require that all inputs (with the exception of
132-
`Create` that are needed to compute the expected outputs are explicitly mocked;
129+
For hermeticity, we require that all inputs (with the exception of
130+
`Create`) that are needed to compute the expected outputs are explicitly mocked;
133131
to explicitly allow a sources to be executed as part of a test their names or
134132
types can be enumerated in an `allowed_sources` attribute of the test
135133
specification.
136134

137135

138136
## Pipeline fragment tests
139137

140-
One can also tests a portion of a pipeline using the `mock_inputs` and
138+
One can also test a portion of a pipeline using the `mock_inputs` and
141139
`expected_outputs` section of a test, for example
142140

143141
```

0 commit comments

Comments
 (0)