From 820695e7cca5caca2db8917997a2d4a14975802b Mon Sep 17 00:00:00 2001 From: su-amaas Date: Thu, 4 Apr 2024 04:38:30 +0000 Subject: [PATCH] update to latest version: v1.1.0 --- MANIFEST.in | 3 +++ setup.cfg | 2 +- tests/test_util.py | 14 +++++++------- 3 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9809bf8 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include README.md +include VERSION +include Makefile diff --git a/setup.cfg b/setup.cfg index 96992b6..19b9076 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,4 +2,4 @@ universal = 0 [flake8] -ignore = E203,E501,W503,W504 \ No newline at end of file +ignore = E123,E128,E203,E501,W292,W503,W504 diff --git a/tests/test_util.py b/tests/test_util.py index 6c44312..61e22b7 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -24,7 +24,7 @@ def test_insecure_channel(): channel = amaas.grpc.util._init_by_region_util( "us-east-1", None, False, None, False ) - assert type(channel) == grpc._channel.Channel + assert type(channel) is grpc._channel.Channel # @@ -34,7 +34,7 @@ def test_aio_insecure_channel(): channel = amaas.grpc.util._init_by_region_util( "us-east-1", None, is_aio_channel=True ) - assert type(channel) == grpc.aio._channel.Channel + assert type(channel) is grpc.aio._channel.Channel # @@ -42,7 +42,7 @@ def test_aio_insecure_channel(): # def test_secure_channel(): channel = amaas.grpc.util._init_by_region_util("us-east-1", None, True, None, False) - assert type(channel) == grpc._channel.Channel + assert type(channel) is grpc._channel.Channel # @@ -52,7 +52,7 @@ def test_aio_secure_channel(): channel = amaas.grpc.util._init_by_region_util( "us-east-1", None, True, None, is_aio_channel=True ) - assert type(channel) == grpc.aio._channel.Channel + assert type(channel) is grpc.aio._channel.Channel # @@ -63,7 +63,7 @@ def test_def_ssl_only_channel(channel_mock): amaas.grpc.util._init_by_region_util("us-east-1", None, True, None, False) args = channel_mock.call_args.args - assert type(args[1]._credentials) == grpc._cython.cygrpc.SSLChannelCredentials + assert type(args[1]._credentials) is grpc._cython.cygrpc.SSLChannelCredentials # @@ -78,7 +78,7 @@ def test_ssl_only_channel(channel_mock): ) args = channel_mock.call_args.args - assert type(args[1]._credentials) == grpc._cython.cygrpc.SSLChannelCredentials + assert type(args[1]._credentials) is grpc._cython.cygrpc.SSLChannelCredentials # @@ -97,4 +97,4 @@ def test_composite_channel_with_apikey(channel_mock, auth_mock): ) args = channel_mock.call_args.args - assert type(args[1]._credentials) == grpc._cython.cygrpc.CompositeChannelCredentials + assert type(args[1]._credentials) is grpc._cython.cygrpc.CompositeChannelCredentials