From 61816d5e815837b2cc7909186549c0c653bd51a3 Mon Sep 17 00:00:00 2001 From: Johan Castiblanco Date: Mon, 29 Jan 2024 18:25:18 -0500 Subject: [PATCH] fix: primitive delete in tabs test now dates is the last element of ithe list and progress is always before dates.(penultimate) --- cms/djangoapps/contentstore/views/tests/test_tabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/tests/test_tabs.py b/cms/djangoapps/contentstore/views/tests/test_tabs.py index 5966895d2f4..d2266933982 100644 --- a/cms/djangoapps/contentstore/views/tests/test_tabs.py +++ b/cms/djangoapps/contentstore/views/tests/test_tabs.py @@ -191,7 +191,7 @@ def test_delete(self): tabs.primitive_delete(course, 6) assert course.tabs[1] != {'type': 'dates', 'name': 'Dates'} - tabs.primitive_delete(course, 1) + tabs.primitive_delete(course, -2) assert {'type': 'progress'} not in course.tabs # Check that dates has shifted up assert course.tabs[1] == {'type': 'dates', 'name': 'Dates'}