Skip to content

Commit

Permalink
fix: provide with can_paste_component in serializers (#34521)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzniaievdm authored Apr 24, 2024
1 parent 7cf97ec commit 5967dde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,4 @@ class VerticalContainerSerializer(serializers.Serializer):

children = ChildVerticalContainerSerializer(many=True)
is_published = serializers.BooleanField()
can_paste_component = serializers.BooleanField()
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def test_success_response(self):
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.data["children"]), 2)
self.assertFalse(response.data["is_published"])
self.assertTrue(response.data["can_paste_component"])

def test_xblock_is_published(self):
"""
Expand Down

0 comments on commit 5967dde

Please sign in to comment.