diff --git a/image_explorer/image_explorer.py b/image_explorer/image_explorer.py index 2550bfc..572bcab 100644 --- a/image_explorer/image_explorer.py +++ b/image_explorer/image_explorer.py @@ -75,6 +75,7 @@ class ImageExplorerBlock(XBlock): # pylint: disable=no-init """)) + @XBlock.supports("multi_device") # Mark as mobile-friendly def student_view(self, context): """ Player view, displayed to the student diff --git a/setup.py b/setup.py index e42f36d..602220f 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ def package_data(pkg, root_list): setup( name='xblock-image-explorer', - version='0.4.2', + version='0.4.3', description='XBlock - Image Explorer', packages=['image_explorer'], install_requires=[ diff --git a/tests/unit/test_image_explorer.py b/tests/unit/test_image_explorer.py index 3b1d003..0045a02 100644 --- a/tests/unit/test_image_explorer.py +++ b/tests/unit/test_image_explorer.py @@ -58,3 +58,16 @@ def test_student_view_data(self): student_view_data = self.image_explorer_block.student_view_data() self.assertEqual(student_view_data, expected_image_explorer_data) + + def test_student_view_multi_device_support(self): + """ + Test student_view multi device support is set + """ + self.assertEqual( + self.image_explorer_block.has_support( + getattr(self.image_explorer_block, 'student_view', None), + 'multi_device' + ), + True + ) +