| 1 |
# Copyright 2021 gRPC authors. |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
package(default_visibility = ["//visibility:public"]) |
| 16 |
|
| 17 |
GRPCIO_TESTS_UNIT_CYTHON = [ |
| 18 |
"_cancel_many_calls_test.py", |
| 19 |
"_channel_test.py", |
| 20 |
"_no_messages_server_completion_queue_per_call_test.py", |
| 21 |
"_no_messages_single_server_completion_queue_test.py", |
| 22 |
"_read_some_but_not_all_responses_test.py", |
| 23 |
"_server_test.py", |
| 24 |
"cygrpc_test.py", |
| 25 |
] |
| 26 |
|
| 27 |
py_library( |
| 28 |
name = "common", |
| 29 |
srcs = ["_common.py"], |
| 30 |
) |
| 31 |
|
| 32 |
py_library( |
| 33 |
name = "test_utilities", |
| 34 |
srcs = ["test_utilities.py"], |
| 35 |
) |
| 36 |
|
| 37 |
[ |
| 38 |
py_test( |
| 39 |
name = test_file_name[:-3], |
| 40 |
size = "small", |
| 41 |
srcs = [test_file_name], |
| 42 |
data = [ |
| 43 |
"//src/python/grpcio_tests/tests/unit/credentials", |
| 44 |
], |
| 45 |
imports = ["../../../"], |
| 46 |
main = test_file_name, |
| 47 |
python_version = "PY3", |
| 48 |
deps = [ |
| 49 |
":common", |
| 50 |
":test_utilities", |
| 51 |
"//src/python/grpcio/grpc:grpcio", |
| 52 |
"//src/python/grpcio_tests/tests/unit:resources", |
| 53 |
"//src/python/grpcio_tests/tests/unit:test_common", |
| 54 |
"//src/python/grpcio_tests/tests/unit/framework/common", |
| 55 |
], |
| 56 |
) |
| 57 |
for test_file_name in GRPCIO_TESTS_UNIT_CYTHON |
| 58 |
] |