aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/unit/_cython/BUILD.bazel
blob: 458a6b1fb8a15cf268ef429aaa886fc6e6d7cffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
load("@grpc_python_dependencies//:requirements.bzl", "requirement")

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],
        main=test_file_name,
        deps=[
            "//src/python/grpcio/grpc:grpcio",
            ":common",
            ":test_utilities",
            "//src/python/grpcio_tests/tests/unit/framework/common",
            "//src/python/grpcio_tests/tests/unit:test_common",
            "//src/python/grpcio_tests/tests/unit:resources",
        ],
        imports=["../../../",],
        data=[
            "//src/python/grpcio_tests/tests/unit/credentials",
        ],
    ) for test_file_name in GRPCIO_TESTS_UNIT_CYTHON
]