Skip to content

Commit

Permalink
fix: primitive delete in tabs test
Browse files Browse the repository at this point in the history
now dates is the last element of ithe list and progress is always before dates.(penultimate)
  • Loading branch information
johanseto committed Jan 29, 2024
1 parent 9e8bbb3 commit 61816d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/djangoapps/contentstore/views/tests/test_tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down

0 comments on commit 61816d5

Please sign in to comment.