Skip to content

Commit 772d648

Browse files
committed
Revert "Update test_linked_pa_templates.py"
This reverts commit 6e6b0bb.
1 parent 6e6b0bb commit 772d648

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

tests/test_linked_pa_templates.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,12 @@ def test_c_update_linked_pa_template(self):
7373
linked_pa_template_update_parameters_root = LinkedPATemplateUpdateParametersRoot(
7474
data=linked_pa_template_update_parameters
7575
)
76-
77-
try:
78-
response = self.linked_pa_templates_api.update_linked_pa_templates(
79-
id=template_id, linked_pa_template_update_parameters_root=linked_pa_template_update_parameters_root
80-
)
81-
self.assertEqual(response[1], 200, "Response should be 200 - Success")
82-
self.assertEqual(type(response[0].data), LinkedPATemplatePostSummary, "Response should be of LinkedPATemplatePostSummary type.")
83-
self.assertGreater(len(response[0].data['id']), 0, "Response result should not be an empty list.")
84-
except:
85-
self.skipTest("template doesn't exist to fetch")
76+
response = self.linked_pa_templates_api.update_linked_pa_templates(
77+
id=template_id, linked_pa_template_update_parameters_root=linked_pa_template_update_parameters_root
78+
)
79+
self.assertEqual(response[1], 200, "Response should be 200 - Success")
80+
self.assertEqual(type(response[0].data), LinkedPATemplatePostSummary, "Response should be of LinkedPATemplatePostSummary type.")
81+
self.assertGreater(len(response[0].data['id']), 0, "Response result should not be an empty list.")
8682

8783
def test_d_get_linked_pa_template_by_id(self):
8884
templates = self.linked_pa_templates_api.get_linked_pa_templates(

0 commit comments

Comments
 (0)