Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions tests/test_linked_pa_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,17 @@ def test_c_update_linked_pa_template(self):
linked_pa_template_update_parameters_root = LinkedPATemplateUpdateParametersRoot(
data=linked_pa_template_update_parameters
)
response = self.linked_pa_templates_api.update_linked_pa_templates(
id=template_id, linked_pa_template_update_parameters_root=linked_pa_template_update_parameters_root
)
self.assertEqual(response[1], 200, "Response should be 200 - Success")
self.assertEqual(type(response[0].data), LinkedPATemplatePostSummary, "Response should be of LinkedPATemplatePostSummary type.")
self.assertGreater(len(response[0].data['id']), 0, "Response result should not be an empty list.")

try:
response = self.linked_pa_templates_api.update_linked_pa_templates(
id=template_id, linked_pa_template_update_parameters_root=linked_pa_template_update_parameters_root
)
self.assertEqual(response[1], 200, "Response should be 200 - Success")
self.assertEqual(type(response[0].data), LinkedPATemplatePostSummary,
"Response should be of LinkedPATemplatePostSummary type.")
self.assertGreater(len(response[0].data['id']), 0, "Response result should not be an empty list.")
except:
self.skipTest("template doesn't exist to fetch")

def test_d_get_linked_pa_template_by_id(self):
templates = self.linked_pa_templates_api.get_linked_pa_templates(
Expand Down