diff --git a/tests/functional/openlp_core_lib/test_renderer.py b/tests/functional/openlp_core_lib/test_renderer.py index 3a3eaf4cb..d1a507373 100644 --- a/tests/functional/openlp_core_lib/test_renderer.py +++ b/tests/functional/openlp_core_lib/test_renderer.py @@ -88,7 +88,7 @@ class TestRenderer(TestCase): expected_tuple = ('{st}{r}Text text text{/r}{/st}', '{st}{r}', '') - # WHEN: + # WHEN: The renderer converts the start tags result = renderer._get_start_tags(given_raw_text) # THEN: Check if the correct tuple is returned. @@ -104,7 +104,7 @@ class TestRenderer(TestCase): given_line = 'beginning asdf \n end asdf' expected_words = ['beginning', 'asdf', 'end', 'asdf'] - # WHEN: Split the line + # WHEN: Split the line based on word split rules result_words = renderer._words_split(given_line) # THEN: The word lists should be the same. @@ -121,7 +121,7 @@ class TestRenderer(TestCase): expected_words = ['a
[---]
b'] service_item = ServiceItem(None) - # WHEN: Split the line based on rules + # WHEN: Split the line based on word split rules result_words = renderer.format_slide(given_line, service_item) @@ -139,7 +139,7 @@ class TestRenderer(TestCase): expected_words = ['
[---]'] service_item = ServiceItem(None) - # WHEN: Split the line + # WHEN: Split the line based on word split rules result_words = renderer.format_slide(given_line, service_item) # THEN: The blanks have been removed. @@ -156,8 +156,8 @@ class TestRenderer(TestCase): expected_words = ['
[---] '] service_item = ServiceItem(None) - # WHEN: Split the line + # WHEN: Split the line based on word split rules result_words = renderer.format_slide(given_line, service_item) # THEN: The blanks have been removed. - self.assertListEqual(result_words, expected_words) \ No newline at end of file + self.assertListEqual(result_words, expected_words)