Make Sanity test happy

pull/21232/head
Lidi Zheng 6 years ago
parent 5e5781c961
commit dc2ee66432
  1. 2
      src/python/grpcio/grpc/experimental/BUILD.bazel
  2. 6
      src/python/grpcio/grpc/experimental/aio/_base_call.py
  3. 8
      src/python/grpcio_tests/tests_aio/benchmark/BUILD.bazel
  4. 2
      src/python/grpcio_tests/tests_aio/tests.json

@ -4,11 +4,11 @@ py_library(
name = "aio", name = "aio",
srcs = [ srcs = [
"aio/__init__.py", "aio/__init__.py",
"aio/_base_call.py",
"aio/_call.py", "aio/_call.py",
"aio/_channel.py", "aio/_channel.py",
"aio/_server.py", "aio/_server.py",
"aio/_typing.py", "aio/_typing.py",
"aio/_base_call.py",
], ],
deps = [ deps = [
"//src/python/grpcio/grpc/_cython:cygrpc", "//src/python/grpcio/grpc/_cython:cygrpc",

@ -92,7 +92,8 @@ class Call(grpc.RpcContext, metaclass=ABCMeta):
""" """
class UnaryUnaryCall(Generic[RequestType, ResponseType], Call, metaclass=ABCMeta): class UnaryUnaryCall(
Generic[RequestType, ResponseType], Call, metaclass=ABCMeta):
"""The abstract base class of an unary-unary RPC on the client-side.""" """The abstract base class of an unary-unary RPC on the client-side."""
@abstractmethod @abstractmethod
@ -104,7 +105,8 @@ class UnaryUnaryCall(Generic[RequestType, ResponseType], Call, metaclass=ABCMeta
""" """
class UnaryStreamCall(Generic[RequestType, ResponseType], Call, metaclass=ABCMeta): class UnaryStreamCall(
Generic[RequestType, ResponseType], Call, metaclass=ABCMeta):
@abstractmethod @abstractmethod
def __aiter__(self) -> AsyncIterable[ResponseType]: def __aiter__(self) -> AsyncIterable[ResponseType]:

@ -24,9 +24,9 @@ py_binary(
deps = [ deps = [
"//external:six", "//external:six",
"//src/proto/grpc/testing:benchmark_service_py_pb2", "//src/proto/grpc/testing:benchmark_service_py_pb2",
"//src/proto/grpc/testing:benchmark_service_py_pb2_grpc", "//src/proto/grpc/testing:benchmark_service_py_pb2_grpc",
"//src/proto/grpc/testing:py_messages_proto", "//src/proto/grpc/testing:py_messages_proto",
"//src/python/grpcio/grpc:grpcio", "//src/python/grpcio/grpc:grpcio",
"//src/python/grpcio_tests/tests/unit/framework/common", "//src/python/grpcio_tests/tests/unit/framework/common",
], ],
) )

@ -1,6 +1,6 @@
[ [
"_sanity._sanity_test.AioSanityTest", "_sanity._sanity_test.AioSanityTest",
"unit.call_test.TestAioRpcError", "unit.aio_rpc_error_test.TestAioRpcError",
"unit.call_test.TestCall", "unit.call_test.TestCall",
"unit.channel_test.TestChannel", "unit.channel_test.TestChannel",
"unit.init_test.TestInsecureChannel", "unit.init_test.TestInsecureChannel",

Loading…
Cancel
Save