diff --git a/kolibri/core/exams/test/test_exam_api.py b/kolibri/core/exams/test/test_exam_api.py index 3d42ea17ecf..aa9bc8e6ced 100644 --- a/kolibri/core/exams/test/test_exam_api.py +++ b/kolibri/core/exams/test/test_exam_api.py @@ -553,7 +553,9 @@ def test_exam_model_get_questions_v2_v1(self): def test_exam_question_count_calculation(self): self.login_as_admin() exam = self.make_basic_exam() - question_count = sum(len(source["questions"]) for source in exam["question_sources"]) + question_count = sum( + len(source["questions"]) for source in exam["question_sources"] + ) response = self.post_new_exam(exam) exam_id = response.data["id"] self.assertEqual(response.status_code, 201)