Skip to content

Commit d7b50fc

Browse files
authored
update to latest version: v1.1.0 (#18)
1 parent 767d4e2 commit d7b50fc

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include README.md
2+
include VERSION
3+
include Makefile

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
universal = 0
33

44
[flake8]
5-
ignore = E203,E501,W503,W504
5+
ignore = E123,E128,E203,E501,W292,W503,W504

tests/test_util.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_insecure_channel():
2424
channel = amaas.grpc.util._init_by_region_util(
2525
"us-east-1", None, False, None, False
2626
)
27-
assert type(channel) == grpc._channel.Channel
27+
assert type(channel) is grpc._channel.Channel
2828

2929

3030
#
@@ -34,15 +34,15 @@ def test_aio_insecure_channel():
3434
channel = amaas.grpc.util._init_by_region_util(
3535
"us-east-1", None, is_aio_channel=True
3636
)
37-
assert type(channel) == grpc.aio._channel.Channel
37+
assert type(channel) is grpc.aio._channel.Channel
3838

3939

4040
#
4141
# Test secure channel is created.
4242
#
4343
def test_secure_channel():
4444
channel = amaas.grpc.util._init_by_region_util("us-east-1", None, True, None, False)
45-
assert type(channel) == grpc._channel.Channel
45+
assert type(channel) is grpc._channel.Channel
4646

4747

4848
#
@@ -52,7 +52,7 @@ def test_aio_secure_channel():
5252
channel = amaas.grpc.util._init_by_region_util(
5353
"us-east-1", None, True, None, is_aio_channel=True
5454
)
55-
assert type(channel) == grpc.aio._channel.Channel
55+
assert type(channel) is grpc.aio._channel.Channel
5656

5757

5858
#
@@ -63,7 +63,7 @@ def test_def_ssl_only_channel(channel_mock):
6363
amaas.grpc.util._init_by_region_util("us-east-1", None, True, None, False)
6464

6565
args = channel_mock.call_args.args
66-
assert type(args[1]._credentials) == grpc._cython.cygrpc.SSLChannelCredentials
66+
assert type(args[1]._credentials) is grpc._cython.cygrpc.SSLChannelCredentials
6767

6868

6969
#
@@ -78,7 +78,7 @@ def test_ssl_only_channel(channel_mock):
7878
)
7979

8080
args = channel_mock.call_args.args
81-
assert type(args[1]._credentials) == grpc._cython.cygrpc.SSLChannelCredentials
81+
assert type(args[1]._credentials) is grpc._cython.cygrpc.SSLChannelCredentials
8282

8383

8484
#
@@ -97,4 +97,4 @@ def test_composite_channel_with_apikey(channel_mock, auth_mock):
9797
)
9898

9999
args = channel_mock.call_args.args
100-
assert type(args[1]._credentials) == grpc._cython.cygrpc.CompositeChannelCredentials
100+
assert type(args[1]._credentials) is grpc._cython.cygrpc.CompositeChannelCredentials

0 commit comments

Comments
 (0)