Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions openedx/features/content_type_gating/tests/test_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,9 +1190,10 @@ def test_content_type_gate_for_block(self):
self.user, blocks_dict['not_graded_1'], course['course'].id
) is None

@patch.object(ContentTypeGatingService, '_get_user', return_value=UserFactory.build())
def test_check_children_for_content_type_gating_paywall(self, mocked_user): # pylint: disable=unused-argument
@patch.object(ContentTypeGatingService, "_get_user")
def test_check_children_for_content_type_gating_paywall(self, mocked_get_user):
''' Verify that the method returns a content type gate when appropriate '''
mocked_get_user.return_value = UserFactory.create() # saved user object with id
course = self._create_course()
blocks_dict = course['blocks']
CourseEnrollmentFactory.create(
Expand Down
Loading