Commit b1e38a9b authored by Jo Sama's avatar Jo Sama 😱
Browse files

Add test_list_operators()

parent 64ca9ae9
import types
from topdesk_client.model import Operator
......@@ -7,3 +9,12 @@ def test_get_operator(client, base_url, requests_mock, operator_data):
json=operator_data)
expected = client.get_operator(identity)
assert isinstance(expected, Operator)
def test_list_operators(client, base_url, requests_mock, operator_list_data):
requests_mock.get(client.urls.get_operators(),
json=operator_list_data)
expected = client.list_operators()
assert isinstance(expected, types.GeneratorType)
for x in expected:
assert isinstance(x, Operator)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment