From d5a01142a8669706011f3b2cbfefe7a0ac8e3624 Mon Sep 17 00:00:00 2001 From: Justin Lapierre Date: Wed, 8 Jul 2020 08:27:04 -0400 Subject: [PATCH] EDUCATOR-5080 - All tests passing, all code review comments addressed --- lms/djangoapps/teams/models.py | 2 +- lms/djangoapps/teams/tests/test_views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/teams/models.py b/lms/djangoapps/teams/models.py index e14d6cd36d..2c8bb5251e 100644 --- a/lms/djangoapps/teams/models.py +++ b/lms/djangoapps/teams/models.py @@ -326,7 +326,7 @@ class CourseTeamMembership(models.Model): Args: user: the user that we want to query on course_id: the course_id of the course we're interested in - teamset_id: the teamset_id (formaerly topic_id) of the course we are interested in + topic_id: the topic_id of the course we are interested in Returns: True if the user is on a team in a teamset in the course already diff --git a/lms/djangoapps/teams/tests/test_views.py b/lms/djangoapps/teams/tests/test_views.py index 0d2f61bbf6..54f4d9c922 100644 --- a/lms/djangoapps/teams/tests/test_views.py +++ b/lms/djangoapps/teams/tests/test_views.py @@ -1080,7 +1080,7 @@ class TestCreateTeamAPI(EventTestMixin, TeamAPITestCase): @ddt.data( (None, 401), ('student_inactive', 401), - ('student_unenrolled', 400), + ('student_unenrolled', 403), ('student_enrolled_not_on_team', 200), ('staff', 200), ('course_staff', 200),