diff --git a/cms/djangoapps/contentstore/views/tests/test_access.py b/cms/djangoapps/contentstore/views/tests/test_access.py index 1fbdbdf848..d0918195f8 100644 --- a/cms/djangoapps/contentstore/views/tests/test_access.py +++ b/cms/djangoapps/contentstore/views/tests/test_access.py @@ -11,6 +11,7 @@ from student.tests.factories import AdminFactory from student.auth import add_users from contentstore.views.access import get_user_role + class RolesTest(TestCase): """ Tests for user roles. diff --git a/cms/djangoapps/contentstore/views/tests/test_assets.py b/cms/djangoapps/contentstore/views/tests/test_assets.py index 71e8d2e79e..b4af6f9fb4 100644 --- a/cms/djangoapps/contentstore/views/tests/test_assets.py +++ b/cms/djangoapps/contentstore/views/tests/test_assets.py @@ -114,6 +114,7 @@ class PaginationTestCase(AssetsTestCase): self.assertGreaterEqual(name1, name2) self.assertGreaterEqual(name2, name3) + class UploadTestCase(AssetsTestCase): """ Unit tests for uploading a file diff --git a/cms/djangoapps/contentstore/views/tests/test_checklists.py b/cms/djangoapps/contentstore/views/tests/test_checklists.py index 327254564d..33bfe5e48d 100644 --- a/cms/djangoapps/contentstore/views/tests/test_checklists.py +++ b/cms/djangoapps/contentstore/views/tests/test_checklists.py @@ -113,7 +113,6 @@ class ChecklistTestCase(CourseTestCase): self.assertEqual('CourseOutline', get_first_item(persisted_checklist).get('action_url')) self.compare_checklists(persisted_checklist, returned_checklist) - def test_update_checklists_delete_unsupported(self): """ Delete operation is not supported. """ update_url = self.location.url_reverse('checklists/', '100') diff --git a/cms/djangoapps/contentstore/views/tests/test_course_index.py b/cms/djangoapps/contentstore/views/tests/test_course_index.py index 496b9b7056..4ca23ee43b 100644 --- a/cms/djangoapps/contentstore/views/tests/test_course_index.py +++ b/cms/djangoapps/contentstore/views/tests/test_course_index.py @@ -9,6 +9,7 @@ from xmodule.modulestore.django import loc_mapper from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory from xmodule.modulestore import parsers + class TestCourseIndex(CourseTestCase): """ Unit tests for getting the list of courses and the course outline. @@ -25,7 +26,6 @@ class TestCourseIndex(CourseTestCase): display_name='dotted.course.name-2', ) - def check_index_and_outline(self, authed_client): """ Test getting the list of courses and then pulling up their outlines diff --git a/cms/djangoapps/contentstore/views/tests/test_course_updates.py b/cms/djangoapps/contentstore/views/tests/test_course_updates.py index 38b24d9f53..bc3075668a 100644 --- a/cms/djangoapps/contentstore/views/tests/test_course_updates.py +++ b/cms/djangoapps/contentstore/views/tests/test_course_updates.py @@ -53,7 +53,6 @@ class CourseUpdateTest(CourseTestCase): content, json.loads(refetched.content)['content'], "get w/ provided id" ) - # now put in an evil update content = '
    ' payload = get_response(content, 'January 11, 2013') diff --git a/cms/djangoapps/contentstore/views/tests/test_import_export.py b/cms/djangoapps/contentstore/views/tests/test_import_export.py index 74e1cbd691..e01e6ba565 100644 --- a/cms/djangoapps/contentstore/views/tests/test_import_export.py +++ b/cms/djangoapps/contentstore/views/tests/test_import_export.py @@ -25,6 +25,7 @@ TEST_DATA_CONTENTSTORE['DOC_STORE_CONFIG']['db'] = 'test_xcontent_%s' % uuid4(). log = logging.getLogger(__name__) + @override_settings(CONTENTSTORE=TEST_DATA_CONTENTSTORE) class ImportTestCase(CourseTestCase): """ @@ -178,7 +179,7 @@ class ImportTestCase(CourseTestCase): def try_tar(tarpath): with open(tarpath) as tar: - args = { "name": tarpath, "course-data": [tar] } + args = {"name": tarpath, "course-data": [tar]} resp = self.client.post(self.url, args) self.assertEquals(resp.status_code, 400) self.assertTrue("SuspiciousFileOperation" in resp.content) diff --git a/cms/djangoapps/contentstore/views/tests/test_user.py b/cms/djangoapps/contentstore/views/tests/test_user.py index 8c48b0e8bf..db44b4fa97 100644 --- a/cms/djangoapps/contentstore/views/tests/test_user.py +++ b/cms/djangoapps/contentstore/views/tests/test_user.py @@ -3,7 +3,7 @@ Tests for contentstore/views/user.py. """ import json from contentstore.tests.utils import CourseTestCase -from django.contrib.auth.models import User, Group +from django.contrib.auth.models import User from student.models import CourseEnrollment from xmodule.modulestore.django import loc_mapper from student.roles import CourseStaffRole, CourseInstructorRole