load("@grpc_python_dependencies//:requirements.bzl", "requirement") load("//bazel:python_rules.bzl", "py2and3_test") package(default_visibility = ["//visibility:public"]) GRPCIO_TESTS_UNIT_CYTHON = [ "_cancel_many_calls_test.py", "_channel_test.py", "_no_messages_server_completion_queue_per_call_test.py", "_no_messages_single_server_completion_queue_test.py", "_read_some_but_not_all_responses_test.py", "_server_test.py", "cygrpc_test.py", ] py_library( name = "common", srcs = ["_common.py"], ) py_library( name = "test_utilities", srcs = ["test_utilities.py"], ) [ py2and3_test( name = test_file_name[:-3], size = "small", srcs = [test_file_name], data = [ "//src/python/grpcio_tests/tests/unit/credentials", ], imports = ["../../../"], main = test_file_name, deps = [ ":common", ":test_utilities", "//src/python/grpcio/grpc:grpcio", "//src/python/grpcio_tests/tests/unit:resources", "//src/python/grpcio_tests/tests/unit:test_common", "//src/python/grpcio_tests/tests/unit/framework/common", ], ) for test_file_name in GRPCIO_TESTS_UNIT_CYTHON ]