Tag LMS Unit 1 tests that fail in Django 1.11
This commit is contained in:
@@ -8,6 +8,7 @@ from datetime import datetime
|
||||
from functools import partial
|
||||
|
||||
import ddt
|
||||
import pytest
|
||||
import pytz
|
||||
from bson import ObjectId
|
||||
from django.conf import settings
|
||||
@@ -222,6 +223,7 @@ class ModuleRenderTestCase(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
|
||||
# note if the URL mapping changes then this assertion will break
|
||||
self.assertIn('/courses/' + self.course_key.to_deprecated_string() + '/jump_to_id/vertical_test', html)
|
||||
|
||||
@pytest.mark.django111_expected_failure
|
||||
def test_xqueue_callback_success(self):
|
||||
"""
|
||||
Test for happy-path xqueue_callback
|
||||
@@ -690,6 +692,7 @@ class TestHandleXBlockCallback(SharedModuleStoreTestCase, LoginEnrollmentTestCas
|
||||
BlockCompletion.objects.get(block_key=block.scope_ids.usage_id)
|
||||
|
||||
@patch.dict('django.conf.settings.FEATURES', {'ENABLE_XBLOCK_VIEW_ENDPOINT': True})
|
||||
@pytest.mark.django111_expected_failure
|
||||
def test_xblock_view_handler(self):
|
||||
args = [
|
||||
'edX/toy/2012_Fall',
|
||||
@@ -823,6 +826,7 @@ class TestTOC(ModuleStoreTestCase):
|
||||
@attr(shard=1)
|
||||
@ddt.ddt
|
||||
@patch.dict('django.conf.settings.FEATURES', {'ENABLE_SPECIAL_EXAMS': True})
|
||||
@pytest.mark.django111_expected_failure
|
||||
class TestProctoringRendering(SharedModuleStoreTestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
@@ -1238,6 +1242,7 @@ class TestGatedSubsectionRendering(SharedModuleStoreTestCase, MilestonesTestCase
|
||||
|
||||
@attr(shard=1)
|
||||
@ddt.ddt
|
||||
@pytest.mark.django111_expected_failure
|
||||
class TestHtmlModifiers(ModuleStoreTestCase):
|
||||
"""
|
||||
Tests to verify that standard modifications to the output of XModule/XBlock
|
||||
@@ -1402,6 +1407,7 @@ class XBlockWithJsonInitData(XBlock):
|
||||
|
||||
@attr(shard=1)
|
||||
@ddt.ddt
|
||||
@pytest.mark.django111_expected_failure
|
||||
class JsonInitDataTest(ModuleStoreTestCase):
|
||||
"""Tests for JSON data injected into the JS init function."""
|
||||
|
||||
@@ -1486,6 +1492,7 @@ class ViewInStudioTest(ModuleStoreTestCase):
|
||||
|
||||
|
||||
@attr(shard=1)
|
||||
@pytest.mark.django111_expected_failure
|
||||
class MongoViewInStudioTest(ViewInStudioTest):
|
||||
"""Test the 'View in Studio' link visibility in a mongo backed course."""
|
||||
|
||||
@@ -1515,6 +1522,7 @@ class MongoViewInStudioTest(ViewInStudioTest):
|
||||
|
||||
|
||||
@attr(shard=1)
|
||||
@pytest.mark.django111_expected_failure
|
||||
class MixedViewInStudioTest(ViewInStudioTest):
|
||||
"""Test the 'View in Studio' link visibility in a mixed mongo backed course."""
|
||||
|
||||
@@ -1549,6 +1557,7 @@ class DetachedXBlock(XBlock):
|
||||
@attr(shard=1)
|
||||
@patch.dict('django.conf.settings.FEATURES', {'DISPLAY_DEBUG_INFO_TO_STAFF': True, 'DISPLAY_HISTOGRAMS_TO_STAFF': True})
|
||||
@patch('courseware.module_render.has_access', Mock(return_value=True, autospec=True))
|
||||
@pytest.mark.django111_expected_failure
|
||||
class TestStaffDebugInfo(SharedModuleStoreTestCase):
|
||||
"""Tests to verify that Staff Debug Info panel and histograms are displayed to staff."""
|
||||
|
||||
@@ -1896,6 +1905,7 @@ class TestModuleTrackingContext(SharedModuleStoreTestCase):
|
||||
|
||||
|
||||
@attr(shard=1)
|
||||
@pytest.mark.django111_expected_failure
|
||||
class TestXmoduleRuntimeEvent(TestSubmittingProblems):
|
||||
"""
|
||||
Inherit from TestSubmittingProblems to get functionality that set up a course and problems structure
|
||||
@@ -1965,6 +1975,7 @@ class TestXmoduleRuntimeEvent(TestSubmittingProblems):
|
||||
|
||||
|
||||
@attr(shard=1)
|
||||
@pytest.mark.django111_expected_failure
|
||||
class TestRebindModule(TestSubmittingProblems):
|
||||
"""
|
||||
Tests to verify the functionality of rebinding a module.
|
||||
|
||||
Reference in New Issue
Block a user