Skip to content

Commit

Permalink
fix: update author view rendering test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVZ96 committed Oct 22, 2024
1 parent 75d06a0 commit 84fea29
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xmodule/tests/test_item_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,11 @@ def test_author_view(self):
""" Test author view rendering """
self._bind_course_block(self.item_bank)
rendered = self.item_bank.render(AUTHOR_VIEW, {})
assert '' == rendered.content
# content should be empty
assert 'Learners will see 1 of the 4 selected components' == rendered.content
assert '<li>My Item 0</li>' == rendered.content
assert '<li>My Item 1</li>' == rendered.content
assert '<li>My Item 2</li>' == rendered.content
assert '<li>My Item 3</li>' == rendered.content
assert 'LibraryContentAuthorView' == rendered.js_init_fn
# but some js initialization should happen

Expand Down

0 comments on commit 84fea29

Please sign in to comment.