mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 05:08:32 +00:00
Fixing a stupid mistake in the tests.
This commit is contained in:
parent
648383f2ea
commit
e9cf095810
@ -159,7 +159,7 @@ class TestWorkflowSpecCategoryReorder(BaseTest):
|
|||||||
self.assertEqual(i, cats[i]['display_order'])
|
self.assertEqual(i, cats[i]['display_order'])
|
||||||
|
|
||||||
second_item = cats[1]
|
second_item = cats[1]
|
||||||
rv = self.app.put(f"/v1.0/workflow-specification-category/test_category_1/reorder?direction=up",
|
rv = self.app.put(f"/v1.0/workflow-specification-category/{second_item['id']}/reorder?direction=up",
|
||||||
headers=self.logged_in_headers())
|
headers=self.logged_in_headers())
|
||||||
cats = rv.json
|
cats = rv.json
|
||||||
self.assertEqual(second_item['id'], cats[0]['id'], "item was shifted up by one")
|
self.assertEqual(second_item['id'], cats[0]['id'], "item was shifted up by one")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user