Commit 943fbdd4 by Ben Patterson

Merge pull request #10665 from edx/benp/shard-7-rebal

Rebalance shard 7.
parents 7c4ac3da 0d68cd01
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
Tests the "preview" selector in the LMS that allows changing between Staff, Student, and Content Groups. Tests the "preview" selector in the LMS that allows changing between Staff, Student, and Content Groups.
""" """
from nose.plugins.attrib import attr
from ..helpers import UniqueCourseTest, create_user_partition_json from ..helpers import UniqueCourseTest, create_user_partition_json
from ...pages.studio.auto_auth import AutoAuthPage from ...pages.studio.auto_auth import AutoAuthPage
from ...pages.lms.courseware import CoursewarePage from ...pages.lms.courseware import CoursewarePage
...@@ -14,6 +17,7 @@ from xmodule.partitions.partitions import Group ...@@ -14,6 +17,7 @@ from xmodule.partitions.partitions import Group
from textwrap import dedent from textwrap import dedent
@attr('shard_3')
class StaffViewTest(UniqueCourseTest): class StaffViewTest(UniqueCourseTest):
""" """
Tests that verify the staff view. Tests that verify the staff view.
...@@ -51,6 +55,7 @@ class StaffViewTest(UniqueCourseTest): ...@@ -51,6 +55,7 @@ class StaffViewTest(UniqueCourseTest):
return staff_page return staff_page
@attr('shard_3')
class CourseWithoutContentGroupsTest(StaffViewTest): class CourseWithoutContentGroupsTest(StaffViewTest):
""" """
Setup for tests that have no content restricted to specific content groups. Setup for tests that have no content restricted to specific content groups.
...@@ -81,6 +86,7 @@ class CourseWithoutContentGroupsTest(StaffViewTest): ...@@ -81,6 +86,7 @@ class CourseWithoutContentGroupsTest(StaffViewTest):
) )
@attr('shard_3')
class StaffViewToggleTest(CourseWithoutContentGroupsTest): class StaffViewToggleTest(CourseWithoutContentGroupsTest):
""" """
Tests for the staff view toggle button. Tests for the staff view toggle button.
...@@ -97,6 +103,7 @@ class StaffViewToggleTest(CourseWithoutContentGroupsTest): ...@@ -97,6 +103,7 @@ class StaffViewToggleTest(CourseWithoutContentGroupsTest):
self.assertFalse(course_page.has_tab('Instructor')) self.assertFalse(course_page.has_tab('Instructor'))
@attr('shard_3')
class StaffDebugTest(CourseWithoutContentGroupsTest): class StaffDebugTest(CourseWithoutContentGroupsTest):
""" """
Tests that verify the staff debug info. Tests that verify the staff debug info.
...@@ -228,6 +235,7 @@ class StaffDebugTest(CourseWithoutContentGroupsTest): ...@@ -228,6 +235,7 @@ class StaffDebugTest(CourseWithoutContentGroupsTest):
'for user {}'.format(self.USERNAME), msg) 'for user {}'.format(self.USERNAME), msg)
@attr('shard_3')
class CourseWithContentGroupsTest(StaffViewTest): class CourseWithContentGroupsTest(StaffViewTest):
""" """
Verifies that changing the "View this course as" selector works properly for content groups. Verifies that changing the "View this course as" selector works properly for content groups.
......
""" """
Acceptance tests for the Import and Export pages Acceptance tests for the Import and Export pages
""" """
from nose.plugins.attrib import attr
from datetime import datetime from datetime import datetime
from abc import abstractmethod from abc import abstractmethod
...@@ -33,6 +34,7 @@ class ExportTestMixin(object): ...@@ -33,6 +34,7 @@ class ExportTestMixin(object):
self.assertTrue(is_tarball_mimetype) self.assertTrue(is_tarball_mimetype)
@attr('shard_4')
class TestCourseExport(ExportTestMixin, StudioCourseTest): class TestCourseExport(ExportTestMixin, StudioCourseTest):
""" """
Export tests for courses. Export tests for courses.
...@@ -55,6 +57,7 @@ class TestCourseExport(ExportTestMixin, StudioCourseTest): ...@@ -55,6 +57,7 @@ class TestCourseExport(ExportTestMixin, StudioCourseTest):
self.assertEqual(self.export_page.header_text, 'Course Export') self.assertEqual(self.export_page.header_text, 'Course Export')
@attr('shard_4')
class TestLibraryExport(ExportTestMixin, StudioLibraryTest): class TestLibraryExport(ExportTestMixin, StudioLibraryTest):
""" """
Export tests for libraries. Export tests for libraries.
...@@ -103,6 +106,7 @@ class BadExportMixin(object): ...@@ -103,6 +106,7 @@ class BadExportMixin(object):
) )
@attr('shard_4')
class TestLibraryBadExport(BadExportMixin, StudioLibraryTest): class TestLibraryBadExport(BadExportMixin, StudioLibraryTest):
""" """
Verify exporting a bad library causes an error. Verify exporting a bad library causes an error.
...@@ -126,6 +130,7 @@ class TestLibraryBadExport(BadExportMixin, StudioLibraryTest): ...@@ -126,6 +130,7 @@ class TestLibraryBadExport(BadExportMixin, StudioLibraryTest):
) )
@attr('shard_4')
class TestCourseBadExport(BadExportMixin, StudioCourseTest): class TestCourseBadExport(BadExportMixin, StudioCourseTest):
""" """
Verify exporting a bad course causes an error. Verify exporting a bad course causes an error.
...@@ -157,6 +162,7 @@ class TestCourseBadExport(BadExportMixin, StudioCourseTest): ...@@ -157,6 +162,7 @@ class TestCourseBadExport(BadExportMixin, StudioCourseTest):
) )
@attr('shard_4')
class ImportTestMixin(object): class ImportTestMixin(object):
""" """
Tests to run for both course and library import pages. Tests to run for both course and library import pages.
...@@ -271,6 +277,7 @@ class ImportTestMixin(object): ...@@ -271,6 +277,7 @@ class ImportTestMixin(object):
self.import_page.wait_for_tasks(fail_on='Updating') self.import_page.wait_for_tasks(fail_on='Updating')
@attr('shard_4')
class TestEntranceExamCourseImport(ImportTestMixin, StudioCourseTest): class TestEntranceExamCourseImport(ImportTestMixin, StudioCourseTest):
""" """
Tests the Course import page Tests the Course import page
...@@ -316,6 +323,7 @@ class TestEntranceExamCourseImport(ImportTestMixin, StudioCourseTest): ...@@ -316,6 +323,7 @@ class TestEntranceExamCourseImport(ImportTestMixin, StudioCourseTest):
) )
@attr('shard_4')
class TestCourseImport(ImportTestMixin, StudioCourseTest): class TestCourseImport(ImportTestMixin, StudioCourseTest):
""" """
Tests the Course import page Tests the Course import page
...@@ -357,6 +365,7 @@ class TestCourseImport(ImportTestMixin, StudioCourseTest): ...@@ -357,6 +365,7 @@ class TestCourseImport(ImportTestMixin, StudioCourseTest):
self.assertEqual(self.import_page.header_text, 'Course Import') self.assertEqual(self.import_page.header_text, 'Course Import')
@attr('shard_4')
class TestLibraryImport(ImportTestMixin, StudioLibraryTest): class TestLibraryImport(ImportTestMixin, StudioLibraryTest):
""" """
Tests the Library import page Tests the Library import page
......
...@@ -312,6 +312,7 @@ class EditContainerTest(NestedVerticalTest): ...@@ -312,6 +312,7 @@ class EditContainerTest(NestedVerticalTest):
self.assertEqual(component.student_content, "modified content") self.assertEqual(component.student_content, "modified content")
@attr('shard_3')
class EditVisibilityModalTest(ContainerBase): class EditVisibilityModalTest(ContainerBase):
""" """
Tests of the visibility settings modal for components on the unit Tests of the visibility settings modal for components on the unit
...@@ -1041,6 +1042,7 @@ class UnitPublishingTest(ContainerBase): ...@@ -1041,6 +1042,7 @@ class UnitPublishingTest(ContainerBase):
# self.assertEqual('discussion', self.courseware.xblock_component_type(1)) # self.assertEqual('discussion', self.courseware.xblock_component_type(1))
@attr('shard_3')
class DisplayNameTest(ContainerBase): class DisplayNameTest(ContainerBase):
""" """
Test consistent use of display_name_with_default Test consistent use of display_name_with_default
...@@ -1077,6 +1079,7 @@ class DisplayNameTest(ContainerBase): ...@@ -1077,6 +1079,7 @@ class DisplayNameTest(ContainerBase):
self.assertEqual(container.name, title_on_unit_page) self.assertEqual(container.name, title_on_unit_page)
@attr('shard_3')
class ProblemCategoryTabsTest(ContainerBase): class ProblemCategoryTabsTest(ContainerBase):
""" """
Test to verify tabs in problem category. Test to verify tabs in problem category.
......
...@@ -1755,6 +1755,7 @@ class DeprecationWarningMessageTest(CourseOutlineTest): ...@@ -1755,6 +1755,7 @@ class DeprecationWarningMessageTest(CourseOutlineTest):
) )
@attr('shard_4')
class SelfPacedOutlineTest(CourseOutlineTest): class SelfPacedOutlineTest(CourseOutlineTest):
"""Test the course outline for a self-paced course.""" """Test the course outline for a self-paced course."""
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
Acceptance tests for Studio's Settings Details pages Acceptance tests for Studio's Settings Details pages
""" """
from datetime import datetime, timedelta from datetime import datetime, timedelta
from nose.plugins.attrib import attr
from unittest import skip from unittest import skip
from .base_studio_test import StudioCourseTest from .base_studio_test import StudioCourseTest
...@@ -18,6 +19,7 @@ from ..helpers import ( ...@@ -18,6 +19,7 @@ from ..helpers import (
) )
@attr('shard_4')
class StudioSettingsDetailsTest(StudioCourseTest): class StudioSettingsDetailsTest(StudioCourseTest):
"""Base class for settings and details page tests.""" """Base class for settings and details page tests."""
...@@ -35,6 +37,7 @@ class StudioSettingsDetailsTest(StudioCourseTest): ...@@ -35,6 +37,7 @@ class StudioSettingsDetailsTest(StudioCourseTest):
self.assertTrue(self.settings_detail.is_browser_on_page()) self.assertTrue(self.settings_detail.is_browser_on_page())
@attr('shard_4')
class SettingsMilestonesTest(StudioSettingsDetailsTest): class SettingsMilestonesTest(StudioSettingsDetailsTest):
""" """
Tests for milestones feature in Studio's settings tab Tests for milestones feature in Studio's settings tab
...@@ -201,6 +204,7 @@ class SettingsMilestonesTest(StudioSettingsDetailsTest): ...@@ -201,6 +204,7 @@ class SettingsMilestonesTest(StudioSettingsDetailsTest):
)) ))
@attr('shard_4')
class CoursePacingTest(StudioSettingsDetailsTest): class CoursePacingTest(StudioSettingsDetailsTest):
"""Tests for setting a course to self-paced.""" """Tests for setting a course to self-paced."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment