Revert "feat: store split modulestore's course indexes in Django/MySQL"
This reverts commit 96e5ff8dce.
This commit is contained in:
@@ -252,12 +252,12 @@ class TestSetDueDateExtension(ModuleStoreTestCase):
|
||||
|
||||
def test_set_due_date_extension_invalid_date(self):
|
||||
extended = datetime.datetime(2009, 1, 1, 0, 0, tzinfo=UTC)
|
||||
with pytest.raises(tools.DashboardError), self.allow_transaction_exception():
|
||||
with pytest.raises(tools.DashboardError):
|
||||
tools.set_due_date_extension(self.course, self.week1, self.user, extended)
|
||||
|
||||
def test_set_due_date_extension_no_date(self):
|
||||
extended = datetime.datetime(2013, 12, 25, 0, 0, tzinfo=UTC)
|
||||
with pytest.raises(tools.DashboardError), self.allow_transaction_exception():
|
||||
with pytest.raises(tools.DashboardError):
|
||||
tools.set_due_date_extension(self.course, self.week3, self.user, extended)
|
||||
|
||||
def test_reset_due_date_extension(self):
|
||||
|
||||
@@ -673,6 +673,6 @@ class TestInstructorDashboardPerformance(ModuleStoreTestCase, LoginEnrollmentTes
|
||||
|
||||
# check MongoDB calls count
|
||||
url = reverse('spoc_gradebook', kwargs={'course_id': self.course.id})
|
||||
with check_mongo_calls(6):
|
||||
with check_mongo_calls(9):
|
||||
response = self.client.get(url)
|
||||
assert response.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user