Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions cms/djangoapps/contentstore/tests/test_proctoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ def test_onboarding_exam_is_practice_exam(self, is_practice_exam, is_onboarding_

self._verify_exam_data(sequence, True)

@unittest.skipIf(
settings.TAHOE_TEMP_MONKEYPATCHING_JUNIPER_TESTS, # TODO: Triage IntegrityError in RED-1877
'IntegrityError due to UserID.test'
)
@unittest.skipIf(settings.TAHOE_ALWAYS_SKIP_TEST, 'Skipping until Lilac OSPR edx#27002 of BOM-2453')
@ddt.data(
(True, False, True, False, False),
(False, False, True, False, False),
Expand Down Expand Up @@ -245,20 +242,7 @@ def test_feature_flag_off(self):
(False, False, 0),
)
@ddt.unpack
@unittest.skipIf(
# This test expects a user ID with the ID `-3` which is
# Therefore the error below is thrown:
#
# django.db.utils.IntegrityError: The row in table 'proctoring_proctoredexamreviewpolicy'
# with primary key '1' has an invalid foreign key:
# proctoring_proctoredexamreviewpolicy.set_by_user_id contains a value '-3'
# that does not have a corresponding value in auth_user.id.
#
# The fix is probably to see if there's some missing user creation for
# Special user IDs such as xmodule.modulestore.ModuleStoreEnum.UserID.test
settings.TAHOE_TEMP_MONKEYPATCHING_JUNIPER_TESTS, # TODO: Triage IntegrityError in RED-1877
'fails due to IntegrityError'
)
@unittest.skipIf(settings.TAHOE_ALWAYS_SKIP_TEST, 'Skipping until Lilac OSPR edx#27002 of BOM-2453')
def test_advanced_settings(self, enable_timed_exams, enable_proctored_exams, expected_count):
"""
Make sure the feature flag is honored
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1570,10 +1570,7 @@ def post_and_assert_status(self, data, expected_status=status.HTTP_204_NO_CONTEN
self.assertEqual(response.status_code, expected_status)
return response

@unittest.skipIf(
settings.TAHOE_TEMP_MONKEYPATCHING_JUNIPER_TESTS, # TODO: Triage IntegrityError in RED-1877
'IntegrityError in wiki_articleplugin needs devstack/staging to test before marking as perm. failure.'
)
@unittest.skipIf(settings.TAHOE_ALWAYS_SKIP_TEST, 'Skipping until Lilac OSPR edx#27002 of BOM-2453')
def test_retire_user(self):
# check that rows that will not exist after retirement exist now
self.assertTrue(CreditRequest.objects.filter(username=self.test_user.username).exists())
Expand Down Expand Up @@ -1610,10 +1607,7 @@ def test_retire_user(self):
self.assertEqual(retired_api_access_request.company_name, '')
self.assertEqual(retired_api_access_request.reason, '')

@unittest.skipIf(
settings.TAHOE_TEMP_MONKEYPATCHING_JUNIPER_TESTS, # TODO: Triage IntegrityError in RED-1877
'IntegrityError in wiki_articleplugin needs devstack/staging to test before marking as perm. failure.'
)
@unittest.skipIf(settings.TAHOE_ALWAYS_SKIP_TEST, 'Skipping until Lilac OSPR edx#27002 of BOM-2453')
def test_retire_user_twice_idempotent(self):
# check that a second call to the retire_misc endpoint will work
data = {'username': self.original_username}
Expand Down