Skip to content

Commit

Permalink
fix: ensure dates is the last element
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto committed Jan 30, 2024
1 parent 6109a1c commit 1a3d0df
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 @@ -194,7 +194,7 @@ def test_delete(self):
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'}
assert course.tabs[-1] == {'type': 'dates', 'name': 'Dates'}

def test_insert(self):
"""Test primitive tab insertion."""
Expand Down

0 comments on commit 1a3d0df

Please sign in to comment.