shikhabhadoria commented on code in PR #41451:
URL: https://github.com/apache/beam/pull/41451#discussion_r4757732156


##########
sdks/python/apache_beam/transforms/enrichment_test.py:
##########
@@ -19,14 +19,36 @@
 import unittest
 
 import apache_beam as beam
+from apache_beam.io.requestresponse import NoOpsRepeater
+from apache_beam.io.requestresponse import UserCodeTimeoutException

Review Comment:
   Moved `NoOpsRepeater` and `UserCodeTimeoutException` (and the other 
`requestresponse` imports) inside the `try ... except ImportError` block in 
`enrichment_test.py`, and added unit tests in `requestresponse_test.py` and 
`enrichment_test.py` covering direct RRIO usage, batched `FlattenBatchErrors` 
(including with `error_handler`), default tags + unpacking + 
`.with_output_types`, `cache` + `with_exception_handling`, `exc_class`, 
`error_handler`, combined `threshold`, and tuple requests with 
`use_custom_types=True`.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to