Skip to content
Snippets Groups Projects
Unverified Commit b2b03296 authored by Michael Terry's avatar Michael Terry Committed by GitHub
Browse files

Merge pull request #28288 from edx/mikix/cleanup

chore: remove unused serialized field
parents 8fe24a44 beb84bb4
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,6 @@ class CourseInfoSerializer(serializers.Serializer): # pylint: disable=abstract-
can_view_legacy_courseware = serializers.BooleanField()
is_staff = serializers.BooleanField()
course_access = serializers.DictField()
can_load_courseware = serializers.DictField(source='course_access') # can be removed once MFE updates
notes = serializers.DictField()
marketing_url = serializers.CharField()
celebrations = serializers.DictField()
......
......@@ -294,9 +294,6 @@ class CourseApiTestViews(BaseCoursewareTests, MasqueradeMixin):
else:
assert not response.data['course_access']['has_access']
# Remove this once can_load_courseware is also removed
assert response.data['course_access'] == response.data['can_load_courseware']
def test_streak_data_in_response(self):
""" Test that metadata endpoint returns data for the streak celebration """
CourseEnrollment.enroll(self.user, self.course.id, 'audit')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment