Skip to content

Commit

Permalink
[ADD] test context manager client
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Salamea authored and mvantellingen committed Nov 3, 2022
1 parent c87acd1 commit 0868751
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ def test_service_proxy_non_existing():
assert client_obj.service.NonExisting


def test_context_manager():
with client.Client("tests/wsdl_files/soap.wsdl") as client:
assert client


def test_service_proxy_dir_operations():
client_obj = client.Client("tests/wsdl_files/soap.wsdl")
operations = [op for op in dir(client_obj.service) if not op.startswith("_")]
Expand Down

0 comments on commit 0868751

Please sign in to comment.