def test_unpack_zipfile_to_khan_content_extracts_to_content_dir(self): zipfile_instance = MagicMock() extract_dir = settings.KHAN_CONTENT_PATH mod.unpack_zipfile_to_khan_content(zipfile_instance) zipfile_instance.extractall.assert_called_once_with(extract_dir)
def test_unpack_zipfile_to_khan_content_extracts_to_content_dir(self): zipfile_instance = MagicMock() extract_dir = settings.ASSESSMENT_ITEMS_RESOURCES_DIR mod.unpack_zipfile_to_khan_content(zipfile_instance) zipfile_instance.extractall.assert_called_once_with(extract_dir)
def test_unpack_zipfile_to_khan_content_extracts_to_content_dir(self): zipfile_instance = MagicMock() extract_dir = settings.ASSESSMENT_ITEMS_RESOURCES_DIR mod.unpack_zipfile_to_khan_content(zipfile_instance) zipfile_instance.extractall.assert_called_once_with(extract_dir)
def test_unpack_zipfile_to_khan_content_extracts_to_content_dir(self): zipfile_instance = MagicMock() from kalite.contentload.settings import KHAN_ASSESSMENT_ITEM_ROOT extract_dir = KHAN_ASSESSMENT_ITEM_ROOT mod.unpack_zipfile_to_khan_content(zipfile_instance) zipfile_instance.extractall.assert_called_once_with(extract_dir)