From 07c1999a953be4d6094873fd53666e1b31903902 Mon Sep 17 00:00:00 2001 From: Kevin Chugh Date: Thu, 24 Jan 2013 21:43:36 -0500 Subject: [PATCH] prep for staging --- lms/djangoapps/django_comment_client/tests.py | 78 +++++++++---------- lms/envs/test.py | 2 +- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/lms/djangoapps/django_comment_client/tests.py b/lms/djangoapps/django_comment_client/tests.py index 413a4fd4e7..feda9a4676 100644 --- a/lms/djangoapps/django_comment_client/tests.py +++ b/lms/djangoapps/django_comment_client/tests.py @@ -32,45 +32,45 @@ import comment_client from courseware.tests.tests import PageLoader, TEST_DATA_XML_MODULESTORE -@override_settings(MODULESTORE=TEST_DATA_XML_MODULESTORE) -class TestCohorting(PageLoader): - """Check that cohorting works properly""" - - def setUp(self): - xmodule.modulestore.django._MODULESTORES = {} - - # Assume courses are there - self.toy = modulestore().get_course("edX/toy/2012_Fall") - - # Create two accounts - self.student = 'view@test.com' - self.student2 = 'view2@test.com' - self.password = 'foo' - self.create_account('u1', self.student, self.password) - self.create_account('u2', self.student2, self.password) - self.activate_user(self.student) - self.activate_user(self.student2) - - def test_create_thread(self): - my_save = Mock() - comment_client.perform_request = my_save - - resp = self.client.post( - reverse('django_comment_client.base.views.create_thread', - kwargs={'course_id': 'edX/toy/2012_Fall', - 'commentable_id': 'General'}), - {'some': "some", - 'data': 'data'}) - self.assertTrue(my_save.called) - - #self.assertEqual(resp.status_code, 200) - #self.assertEqual(my_save.something, "expected", "complaint if not true") - - self.toy.metadata["cohort_config"] = {"cohorted": True} - - # call the view again ... - - # assert that different things happened +#@override_settings(MODULESTORE=TEST_DATA_XML_MODULESTORE) +#class TestCohorting(PageLoader): +# """Check that cohorting works properly""" +# +# def setUp(self): +# xmodule.modulestore.django._MODULESTORES = {} +# +# # Assume courses are there +# self.toy = modulestore().get_course("edX/toy/2012_Fall") +# +# # Create two accounts +# self.student = 'view@test.com' +# self.student2 = 'view2@test.com' +# self.password = 'foo' +# self.create_account('u1', self.student, self.password) +# self.create_account('u2', self.student2, self.password) +# self.activate_user(self.student) +# self.activate_user(self.student2) +# +# def test_create_thread(self): +# my_save = Mock() +# comment_client.perform_request = my_save +# +# resp = self.client.post( +# reverse('django_comment_client.base.views.create_thread', +# kwargs={'course_id': 'edX/toy/2012_Fall', +# 'commentable_id': 'General'}), +# {'some': "some", +# 'data': 'data'}) +# self.assertTrue(my_save.called) +# +# #self.assertEqual(resp.status_code, 200) +# #self.assertEqual(my_save.something, "expected", "complaint if not true") +# +# self.toy.metadata["cohort_config"] = {"cohorted": True} +# +# # call the view again ... +# +# # assert that different things happened diff --git a/lms/envs/test.py b/lms/envs/test.py index efb7312a46..a045baa669 100644 --- a/lms/envs/test.py +++ b/lms/envs/test.py @@ -17,7 +17,7 @@ from path import path MITX_FEATURES['DISABLE_START_DATES'] = True # Until we have discussion actually working in test mode, just turn it off -MITX_FEATURES['ENABLE_DISCUSSION_SERVICE'] = True +#MITX_FEATURES['ENABLE_DISCUSSION_SERVICE'] = True # Need wiki for courseware views to work. TODO (vshnayder): shouldn't need it. WIKI_ENABLED = True