|
14 | 14 |
|
15 | 15 | from openedx.features.content_type_gating.models import ContentTypeGatingConfig |
16 | 16 | from xmodule.partitions.partitions import ( |
17 | | - ENROLLMENT_TRACK_PARTITION_ID, |
18 | 17 | USER_PARTITION_SCHEME_NAMESPACE, |
19 | 18 | Group, |
20 | 19 | NoSuchUserPartitionGroupError, |
@@ -552,32 +551,6 @@ def _enable_enrollment_track_partition(enable): |
552 | 551 | """ |
553 | 552 | FEATURES['ENABLE_ENROLLMENT_TRACK_USER_PARTITION'] = enable |
554 | 553 |
|
555 | | - def test_enrollment_track_partition_not_added_if_conflict(self): |
556 | | - """ |
557 | | - Test that the dynamic enrollment track scheme is NOT added if a UserPartition exists with that ID. |
558 | | - """ |
559 | | - self.user_partition = UserPartition( |
560 | | - ENROLLMENT_TRACK_PARTITION_ID, |
561 | | - self.TEST_NAME, |
562 | | - self.TEST_DESCRIPTION, |
563 | | - self.TEST_GROUPS, |
564 | | - self.non_random_scheme, |
565 | | - self.TEST_PARAMETERS, |
566 | | - ) |
567 | | - self.course.user_partitions = [self.user_partition] |
568 | | - all_partitions = get_all_partitions_for_course(self.course) |
569 | | - assert 1 == len(all_partitions) |
570 | | - assert self.TEST_SCHEME_NAME == all_partitions[0].scheme.name |
571 | | - |
572 | | - def test_enrollment_track_partition_not_added_if_disabled(self): |
573 | | - """ |
574 | | - Test that the dynamic enrollment track scheme is NOT added if the settings FEATURE flag is disabled. |
575 | | - """ |
576 | | - TestGetCourseUserPartitions._enable_enrollment_track_partition(False) |
577 | | - all_partitions = get_all_partitions_for_course(self.course) |
578 | | - assert 1 == len(all_partitions) |
579 | | - assert self.TEST_SCHEME_NAME == all_partitions[0].scheme.name |
580 | | - |
581 | 554 | def test_filter_inactive_user_partitions(self): |
582 | 555 | """ |
583 | 556 | Tests supplying the `active_only` parameter. |
|
0 commit comments