feat: pep8 fixes

This commit is contained in:
rayzhou-bit
2022-05-27 03:24:18 -04:00
parent c63d871e5c
commit 701bfbc8c6
2 changed files with 4 additions and 1 deletions

View File

@@ -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)
self.assertTrue(result == display_name)

View File

@@ -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.