Skip to content

Commit

Permalink
test: update current unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Sep 15, 2023
1 parent 7604277 commit 85f3226
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mindmap/tests/test_mindmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_student_view_with_mind_map(self, initialize_js_mock: Mock):
self.xblock.student_view()

self.xblock.render_template.assert_called_once_with(
"static/html/mindmap.html", expected_context,
"public/html/mindmap.html", expected_context,
)
initialize_js_mock.assert_called_once_with(
'MindMapXBlock', json_args=expected_js_context
Expand Down Expand Up @@ -126,7 +126,7 @@ def test_student_view_empty_mind_map(self, initialize_js_mock: Mock):
self.xblock.student_view()

self.xblock.render_template.assert_called_once_with(
"static/html/mindmap.html", expected_context,
"public/html/mindmap.html", expected_context,
)
initialize_js_mock.assert_called_once_with(
'MindMapXBlock', json_args=expected_js_context
Expand Down Expand Up @@ -158,7 +158,7 @@ def test_static_mind_map_in_student_view(self):
self.xblock.student_view()

self.xblock.render_template.assert_called_once_with(
"static/html/mindmap.html", expected_context,
"public/html/mindmap.html", expected_context,
)

def test_student_view_for_instructor(self):
Expand Down Expand Up @@ -189,7 +189,7 @@ def test_student_view_for_instructor(self):
self.xblock.student_view()

self.xblock.render_template.assert_called_once_with(
"static/html/mindmap.html", expected_context,
"public/html/mindmap.html", expected_context,
)

def test_studio_view(self):
Expand Down Expand Up @@ -226,7 +226,7 @@ def test_studio_view(self):
self.xblock.studio_view()

self.xblock.render_template.assert_called_once_with(
"static/html/mindmap_edit.html", expected_context,
"public/html/mindmap_edit.html", expected_context,
)

@initialize_js_mock
Expand Down Expand Up @@ -271,7 +271,7 @@ def test_student_not_allowed_submission(self, initialize_js_mock: Mock):
self.xblock.student_view()

self.xblock.render_template.assert_called_once_with(
"static/html/mindmap.html", expected_context,
"public/html/mindmap.html", expected_context,
)
initialize_js_mock.assert_called_once_with(
'MindMapXBlock', json_args=expected_js_context
Expand Down

0 comments on commit 85f3226

Please sign in to comment.