Skip to content

Commit 0868751

Browse files
Cristian Salameamvantellingen
authored andcommitted
[ADD] test context manager client
1 parent c87acd1 commit 0868751

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ def test_service_proxy_non_existing():
5252
assert client_obj.service.NonExisting
5353

5454

55+
def test_context_manager():
56+
with client.Client("tests/wsdl_files/soap.wsdl") as client:
57+
assert client
58+
59+
5560
def test_service_proxy_dir_operations():
5661
client_obj = client.Client("tests/wsdl_files/soap.wsdl")
5762
operations = [op for op in dir(client_obj.service) if not op.startswith("_")]

0 commit comments

Comments
 (0)