ahmedabu98 commented on code in PR #29834:
URL: https://github.com/apache/beam/pull/29834#discussion_r1476675750


##########
sdks/python/apache_beam/transforms/external_transform_provider_test.py:
##########
@@ -14,26 +14,48 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
+
 import logging
 import os
+import secrets
+import shutil
+import time
+import typing
 import unittest
+from importlib import import_module
 
+import numpy
 import pytest
+import yaml
 
 import apache_beam as beam
+from apache_beam.options.pipeline_options import PipelineOptions
 from apache_beam.testing.test_pipeline import TestPipeline
 from apache_beam.testing.util import assert_that
 from apache_beam.testing.util import equal_to
+from apache_beam.transforms._external_transforms.io import GenerateSequence
 from apache_beam.transforms.external import BeamJarExpansionService
 from apache_beam.transforms.external_transform_provider import 
STANDARD_URN_PATTERN
+from apache_beam.transforms.external_transform_provider import 
ExternalTransform
 from apache_beam.transforms.external_transform_provider import 
ExternalTransformProvider
 from apache_beam.transforms.external_transform_provider import 
camel_case_to_snake_case
 from apache_beam.transforms.external_transform_provider import 
infer_name_from_identifier
 from apache_beam.transforms.external_transform_provider import 
snake_case_to_lower_camel_case
 from apache_beam.transforms.external_transform_provider import 
snake_case_to_upper_camel_case
 
+try:

Review Comment:
   This block imports modules that are not in apache_beam, which appears to not 
be supported in some test environments.
   From some runs, I see this includes [Python unit 
tests](https://github.com/apache/beam/blob/445151694fef810d5112ea7e034659f91fceceac/.github/workflows/python_tests.yml#L93)
 and gradle tasks that run with with [tox 
environment](https://github.com/apache/beam/blob/445151694fef810d5112ea7e034659f91fceceac/.github/workflows/beam_PreCommit_Python_Transforms.yml#L96)
 (defined 
[here](https://github.com/apache/beam/blob/445151694fef810d5112ea7e034659f91fceceac/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy#L3080))



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