EDUCATOR-4877: Implement stubbed API functions using new config values (#22913)

add stubbed api functions, tests
This commit is contained in:
Jansen Kantor
2020-01-24 15:54:32 -05:00
committed by GitHub
parent 48d20e338b
commit 25baa93af9
8 changed files with 117 additions and 27 deletions

View File

@@ -10,6 +10,7 @@ from openedx.core.djangoapps.course_groups.tests.helpers import CohortFactory
from openedx.core.djangoapps.django_comment_common.models import Role
from openedx.core.djangoapps.django_comment_common.utils import seed_permissions_roles
from openedx.core.djangoapps.user_api.tests.factories import UserCourseTagFactory
from openedx.core.lib.teams_config import TeamsConfig
from student.tests.factories import CourseEnrollmentFactory, UserFactory
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory
@@ -51,7 +52,14 @@ class ContentGroupTestCase(ModuleStoreTestCase):
}]
},
cohort_config={'cohorted': True},
discussion_topics={}
discussion_topics={},
teams_configuration=TeamsConfig({
'topics': [{
'id': 'topic_id',
'name': 'topic_name',
'description': 'topic_desc',
}]
})
)
seed_permissions_roles(self.course.id)