apache_beam.typehints.typecheck_test_py3 module
Unit tests for typecheck.
See additional runtime_type_check=True tests in ptransform_test.py.
-
class
apache_beam.typehints.typecheck_test_py3.MyDoFn(output_filename)[source]
Bases: apache_beam.transforms.core.DoFn
-
start_bundle()[source]
-
finish_bundle()[source]
-
setup()[source]
-
teardown()[source]
-
process(element: int, *args, **kwargs) → Iterable[int][source]
-
class
apache_beam.typehints.typecheck_test_py3.MyDoFnBadAnnotation(output_filename)[source]
Bases: apache_beam.typehints.typecheck_test_py3.MyDoFn
-
process(element: int, *args, **kwargs) → int[source]
-
class
apache_beam.typehints.typecheck_test_py3.TypecheckTest(methodName='runTest')[source]
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
setUp()[source]
-
test_setup()[source]
-
test_wrapper_pass_through()[source]
-
test_wrapper_pipeline_type_check()[source]