1load("@grpc_python_dependencies//:requirements.bzl", "requirement") 2load("//bazel:python_rules.bzl", "py2and3_test") 3 4package(default_visibility = ["//visibility:public"]) 5 6GRPCIO_TESTS_UNIT_CYTHON = [ 7 "_cancel_many_calls_test.py", 8 "_channel_test.py", 9 "_no_messages_server_completion_queue_per_call_test.py", 10 "_no_messages_single_server_completion_queue_test.py", 11 "_read_some_but_not_all_responses_test.py", 12 "_server_test.py", 13 "cygrpc_test.py", 14] 15 16py_library( 17 name = "common", 18 srcs = ["_common.py"], 19) 20 21py_library( 22 name = "test_utilities", 23 srcs = ["test_utilities.py"], 24) 25 26[ 27 py2and3_test( 28 name = test_file_name[:-3], 29 size = "small", 30 srcs = [test_file_name], 31 data = [ 32 "//src/python/grpcio_tests/tests/unit/credentials", 33 ], 34 imports = ["../../../"], 35 main = test_file_name, 36 deps = [ 37 ":common", 38 ":test_utilities", 39 "//src/python/grpcio/grpc:grpcio", 40 "//src/python/grpcio_tests/tests/unit:resources", 41 "//src/python/grpcio_tests/tests/unit:test_common", 42 "//src/python/grpcio_tests/tests/unit/framework/common", 43 ], 44 ) 45 for test_file_name in GRPCIO_TESTS_UNIT_CYTHON 46] 47