Skip to content

Commit

Permalink
update to latest version: v1.1.0 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
su-amaas authored Apr 4, 2024
1 parent 767d4e2 commit d7b50fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include README.md
include VERSION
include Makefile
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
universal = 0

[flake8]
ignore = E203,E501,W503,W504
ignore = E123,E128,E203,E501,W292,W503,W504
14 changes: 7 additions & 7 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


#
Expand All @@ -34,15 +34,15 @@ 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


#
# Test secure channel is created.
#
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


#
Expand All @@ -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


#
Expand All @@ -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


#
Expand All @@ -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


#
Expand All @@ -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

0 comments on commit d7b50fc

Please sign in to comment.