From 959aed9841894e55b527d3ae933389b4b442e4db Mon Sep 17 00:00:00 2001 From: Jawayria Date: Thu, 4 Feb 2021 14:07:47 +0500 Subject: [PATCH] Resolved pep8 issues --- .../course_api/blocks/transformers/tests/test_milestones.py | 2 +- lms/djangoapps/course_api/blocks/views.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lms/djangoapps/course_api/blocks/transformers/tests/test_milestones.py b/lms/djangoapps/course_api/blocks/transformers/tests/test_milestones.py index 99fccbbe68..445065bd05 100644 --- a/lms/djangoapps/course_api/blocks/transformers/tests/test_milestones.py +++ b/lms/djangoapps/course_api/blocks/transformers/tests/test_milestones.py @@ -199,7 +199,7 @@ class MilestonesTransformerTestCase(CourseStructureTestCase, MilestonesTestCaseM self.setup_gated_section(self.blocks['H'], self.blocks['A']) expected_blocks = ( 'course', 'A', 'B', 'C', 'ProctoredExam', 'D', 'E', 'PracticeExam', 'F', 'G', 'TimedExam', 'J', 'K', 'H', - 'I') # lint-amnesty, pylint: disable=line-too-long + 'I') # lint-amnesty, pylint: disable=line-too-long self.get_blocks_and_check_against_expected(self.user, expected_blocks) # clear the request cache to simulate a new request self.clear_caches() diff --git a/lms/djangoapps/course_api/blocks/views.py b/lms/djangoapps/course_api/blocks/views.py index 7fc7b3d844..94fb050b85 100644 --- a/lms/djangoapps/course_api/blocks/views.py +++ b/lms/djangoapps/course_api/blocks/views.py @@ -353,4 +353,3 @@ def recurse_mark_complete(block_id, blocks): completable_blocks = [blocks[child_block_id] for child_block_id in child_blocks if blocks[child_block_id].get('type') != 'discussion'] block['completion'] = int(all(child.get('completion') == 1 for child in completable_blocks)) -