Add autospec to all mocks
This commit is contained in:
@@ -387,7 +387,7 @@ class TestLibraries(LibraryTestCase):
|
||||
html_block = modulestore().get_item(lc_block.children[0])
|
||||
self.assertEqual(html_block.data, data2)
|
||||
|
||||
@patch("xmodule.library_tools.SearchEngine.get_search_engine", Mock(return_value=None))
|
||||
@patch("xmodule.library_tools.SearchEngine.get_search_engine", Mock(return_value=None, autospec=True))
|
||||
def test_refreshes_children_if_capa_type_change(self):
|
||||
""" Tests that children are automatically refreshed if capa type field changes """
|
||||
name1, name2 = "Option Problem", "Multiple Choice Problem"
|
||||
|
||||
Reference in New Issue
Block a user