Skip to content
Snippets Groups Projects
Commit 6bd09887 authored by Robert Habermann's avatar Robert Habermann
Browse files

fix tests after type_map change

parent fe50adbc
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ class SendRequestResponsesTests(unittest.TestCase):
obj = Client(baseurl="http://fqdn",
webservicename="GenericTicketConnectorREST")
obj.operation = "SessionCreate"
obj._result_type = obj.type_map[obj.operation]
obj._result_type = obj.operation_map[obj.operation]["Result"]
with responses.RequestsMock(assert_all_requests_are_fired=True) as rsps:
rsps.add(responses.POST,
......@@ -39,7 +39,7 @@ class SendRequestResponsesTests(unittest.TestCase):
obj = Client(baseurl="http://fqdn",
webservicename="GenericTicketConnectorREST")
obj.operation = "TicketCreate"
obj._result_type = obj.type_map[obj.operation]
obj._result_type = obj.operation_map[obj.operation]["Result"]
with responses.RequestsMock(assert_all_requests_are_fired=True) as rsps:
rsps.add(responses.POST,
......@@ -58,7 +58,7 @@ class SendRequestResponsesTests(unittest.TestCase):
obj = Client(baseurl="http://fqdn",
webservicename="GenericTicketConnectorREST")
obj.operation = "TicketGet"
obj._result_type = obj.type_map[obj.operation]
obj._result_type = obj.operation_map[obj.operation]["Result"]
with responses.RequestsMock(assert_all_requests_are_fired=True) as rsps:
rsps.add(responses.GET,
......@@ -89,7 +89,7 @@ class SendRequestResponsesTests(unittest.TestCase):
obj = Client(baseurl="http://fqdn",
webservicename="GenericTicketConnectorREST")
obj.operation = "TicketGetList"
obj._result_type = obj.type_map[obj.operation]
obj._result_type = obj.operation_map[obj.operation]["Result"]
with responses.RequestsMock(assert_all_requests_are_fired=True) as rsps:
rsps.add(responses.GET,
......@@ -120,7 +120,7 @@ class SendRequestResponsesTests(unittest.TestCase):
obj = Client(baseurl="http://fqdn",
webservicename="GenericTicketConnectorREST")
obj.operation = "TicketSearch"
obj._result_type = obj.type_map[obj.operation]
obj._result_type = obj.operation_map[obj.operation]["Result"]
with responses.RequestsMock(assert_all_requests_are_fired=True) as rsps:
rsps.add(responses.GET,
......@@ -139,7 +139,7 @@ class SendRequestResponsesTests(unittest.TestCase):
obj = Client(baseurl="http://fqdn",
webservicename="GenericTicketConnectorREST")
obj.operation = "TicketUpdate"
obj._result_type = obj.type_map[obj.operation]
obj._result_type = obj.operation_map[obj.operation]["Result"]
with responses.RequestsMock(assert_all_requests_are_fired=True) as rsps:
rsps.add(responses.PATCH,
......@@ -158,7 +158,7 @@ class SendRequestResponsesTests(unittest.TestCase):
obj = Client(baseurl="http://fqdn",
webservicename="GenericTicketConnectorREST")
obj.operation = "TicketUpdate"
obj._result_type = obj.type_map[obj.operation]
obj._result_type = obj.operation_map[obj.operation]["Result"]
art = {'Article': {'Subject': 'Dümmy Subject',
'Body': 'Hallo Bjørn,\n[kt]\n\n -- The End',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment