Skip to content

Commit

Permalink
fix: add allowd index for delete progress
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto committed Jan 30, 2024
1 parent 61816d5 commit 6109a1c
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, -2)
tabs.primitive_delete(course, len(course.tabs) - 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 6109a1c

Please sign in to comment.