From 701bfbc8c6eb0606fcc087d9573b10b0b14c88ee Mon Sep 17 00:00:00 2001 From: rayzhou-bit Date: Fri, 27 May 2022 03:24:18 -0400 Subject: [PATCH] feat: pep8 fixes --- cms/djangoapps/contentstore/tests/test_utils.py | 4 +++- cms/djangoapps/contentstore/utils.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/tests/test_utils.py b/cms/djangoapps/contentstore/tests/test_utils.py index 832b6eccad..04c3504e51 100644 --- a/cms/djangoapps/contentstore/tests/test_utils.py +++ b/cms/djangoapps/contentstore/tests/test_utils.py @@ -737,6 +737,7 @@ class ValidateCourseOlxTests(CourseTestCase): allowed_xblocks=allowed_xblocks ) + class DetermineLabelTestCase(TestCase): """Tests for xblock Title quirks""" @@ -765,4 +766,5 @@ class DetermineLabelTestCase(TestCase): display_name = None block_type = "something else" result = utils.determine_label(display_name, block_type) - self.assertTrue(result == display_name) \ No newline at end of file + self.assertTrue(result == display_name) + \ No newline at end of file diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py index c2a3cd1931..bb5a53fb94 100644 --- a/cms/djangoapps/contentstore/utils.py +++ b/cms/djangoapps/contentstore/utils.py @@ -702,6 +702,7 @@ def get_sibling_urls(subsection, unit_location): # pylint: disable=too-many-s next_url = reverse_usage_url('container_handler', next_loc) return prev_url, next_url + def determine_label(display_name, block_type): """ Returns the name of the xblock to display in studio.