blob: 4ec9a00e760ac1016f6112232bb44caa2057e7c6 [file]
# Copyright 2021 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
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"],
)
[
py_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,
python_version = "PY3",
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
]