Remove lms pytest shards
This commit is contained in:
@@ -16,7 +16,6 @@ class TestFailOldQueueingTasksCommand(InstructorTaskTestCase):
|
||||
"""
|
||||
Tests for the `fail_old_tasks` management command
|
||||
"""
|
||||
shard = 4
|
||||
|
||||
def setUp(self):
|
||||
super(TestFailOldQueueingTasksCommand, self).setUp()
|
||||
|
||||
@@ -91,7 +91,6 @@ class InstructorTaskReportTest(InstructorTaskTestCase):
|
||||
@ddt.ddt
|
||||
class InstructorTaskModuleSubmitTest(InstructorTaskModuleTestCase):
|
||||
"""Tests API methods that involve the submission of module-based background tasks."""
|
||||
shard = 3
|
||||
|
||||
def setUp(self):
|
||||
super(InstructorTaskModuleSubmitTest, self).setUp()
|
||||
@@ -213,7 +212,6 @@ class InstructorTaskModuleSubmitTest(InstructorTaskModuleTestCase):
|
||||
@patch('bulk_email.models.html_to_text', Mock(return_value='Mocking CourseEmail.text_message', autospec=True))
|
||||
class InstructorTaskCourseSubmitTest(TestReportMixin, InstructorTaskCourseTestCase):
|
||||
"""Tests API methods that involve the submission of course-based background tasks."""
|
||||
shard = 3
|
||||
|
||||
def setUp(self):
|
||||
super(InstructorTaskCourseSubmitTest, self).setUp()
|
||||
|
||||
@@ -303,7 +303,6 @@ class TestReportMixin(object):
|
||||
"""
|
||||
Cleans up after tests that place files in the reports directory.
|
||||
"""
|
||||
shard = 4
|
||||
|
||||
def setUp(self):
|
||||
|
||||
|
||||
@@ -72,7 +72,6 @@ class TestRescoringTask(TestIntegrationTask):
|
||||
|
||||
Exercises real problems with a minimum of patching.
|
||||
"""
|
||||
shard = 3
|
||||
|
||||
def setUp(self):
|
||||
super(TestRescoringTask, self).setUp()
|
||||
|
||||
@@ -20,7 +20,6 @@ class ReportStoreTestMixin(object):
|
||||
"""
|
||||
Mixin for report store tests.
|
||||
"""
|
||||
shard = 4
|
||||
|
||||
def setUp(self):
|
||||
super(ReportStoreTestMixin, self).setUp()
|
||||
@@ -121,7 +120,6 @@ class TestS3ReportStorage(MockS3Mixin, TestCase):
|
||||
Test the S3ReportStorage to make sure that configuration overrides from settings.FINANCIAL_REPORTS
|
||||
are used instead of default ones.
|
||||
"""
|
||||
shard = 4
|
||||
|
||||
def test_financial_report_overrides(self):
|
||||
"""
|
||||
|
||||
@@ -13,7 +13,6 @@ from student.models import CourseEnrollment
|
||||
|
||||
class TestSubtasks(InstructorTaskCourseTestCase):
|
||||
"""Tests for subtasks."""
|
||||
shard = 4
|
||||
|
||||
def setUp(self):
|
||||
super(TestSubtasks, self).setUp()
|
||||
|
||||
@@ -31,7 +31,6 @@ from lms.djangoapps.instructor_task.tasks import (
|
||||
from lms.djangoapps.instructor_task.tasks_helper.misc import upload_ora2_data
|
||||
from lms.djangoapps.instructor_task.tests.factories import InstructorTaskFactory
|
||||
from lms.djangoapps.instructor_task.tests.test_base import InstructorTaskModuleTestCase
|
||||
from openedx.core.lib.tests import attr
|
||||
from xmodule.modulestore.exceptions import ItemNotFoundError
|
||||
|
||||
PROBLEM_URL_NAME = "test_urlname"
|
||||
@@ -374,7 +373,6 @@ class TestOverrideScoreInstructorTask(TestInstructorTasks):
|
||||
)
|
||||
|
||||
|
||||
@attr(shard=3)
|
||||
@ddt.ddt
|
||||
class TestRescoreInstructorTask(TestInstructorTasks):
|
||||
"""Tests problem-rescoring instructor task."""
|
||||
@@ -490,7 +488,6 @@ class TestRescoreInstructorTask(TestInstructorTasks):
|
||||
)
|
||||
|
||||
|
||||
@attr(shard=3)
|
||||
class TestResetAttemptsInstructorTask(TestInstructorTasks):
|
||||
"""Tests instructor task that resets problem attempts."""
|
||||
|
||||
@@ -589,7 +586,6 @@ class TestResetAttemptsInstructorTask(TestInstructorTasks):
|
||||
self._test_reset_with_student(True)
|
||||
|
||||
|
||||
@attr(shard=3)
|
||||
class TestDeleteStateInstructorTask(TestInstructorTasks):
|
||||
"""Tests instructor task that deletes problem state."""
|
||||
|
||||
|
||||
@@ -1007,7 +1007,6 @@ class TestProblemReportSplitTestContent(TestReportMixin, TestConditionalContent,
|
||||
"""
|
||||
Test the problem report on a course that has split tests.
|
||||
"""
|
||||
shard = 3
|
||||
OPTION_1 = 'Option 1'
|
||||
OPTION_2 = 'Option 2'
|
||||
|
||||
@@ -2131,7 +2130,6 @@ class TestCertificateGeneration(InstructorTaskModuleTestCase):
|
||||
"""
|
||||
Test certificate generation task works.
|
||||
"""
|
||||
shard = 3
|
||||
|
||||
ENABLED_CACHES = ['default', 'mongo_metadata_inheritance', 'loc_cache']
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ class InstructorTaskReportTest(InstructorTaskTestCase):
|
||||
"""
|
||||
Tests view methods that involve the reporting of status for background tasks.
|
||||
"""
|
||||
shard = 4
|
||||
|
||||
def _get_instructor_task_status(self, task_id):
|
||||
"""Returns status corresponding to task_id via api method."""
|
||||
|
||||
Reference in New Issue
Block a user