From adf0550571ac43493ae51066a5e5d03d9ff677ca Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Tue, 21 May 2024 22:32:20 +0200 Subject: [PATCH] Update tests --- tests/test_core/test_core_tohtml.py | 4 ++-- tests/test_core/test_core_tomarkdown.py | 6 +++--- tests/test_core/test_core_toodt.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_core/test_core_tohtml.py b/tests/test_core/test_core_tohtml.py index a5df4696..2cea3328 100644 --- a/tests/test_core/test_core_tohtml.py +++ b/tests/test_core/test_core_tohtml.py @@ -165,11 +165,11 @@ def testCoreToHtml_ConvertParagraphs(mockGUI): ) # Text w/Hard Break - html._text = "Line one \nLine two \nLine three\n" + html._text = "Line one\nLine two\nLine three\n" html.tokenizeText() html.doConvert() assert html.result == ( - "

Line one
Line two
Line three

\n" + "

Line one
Line two
Line three

\n" ) # Synopsis, Short diff --git a/tests/test_core/test_core_tomarkdown.py b/tests/test_core/test_core_tomarkdown.py index b7f52b80..8547f778 100644 --- a/tests/test_core/test_core_tomarkdown.py +++ b/tests/test_core/test_core_tomarkdown.py @@ -125,14 +125,14 @@ def testCoreToMarkdown_ConvertParagraphs(mockGUI): ) # Text w/Hard Break - toMD._text = "Line one \nLine two \nLine three\n" + toMD._text = "Line one\nLine two\nLine three\n" toMD.tokenizeText() toMD.doConvert() assert toMD.result == "Line one \nLine two \nLine three\n\n" # Text wo/Hard Break - toMD._text = "Line one \nLine two \nLine three\n" - toMD.setPreserveBreaks(False) + toMD._text = "Line one\nLine two\nLine three\n" + toMD.setKeepLineBreaks(False) toMD.tokenizeText() toMD.doConvert() assert toMD.result == "Line one Line two Line three\n\n" diff --git a/tests/test_core/test_core_toodt.py b/tests/test_core/test_core_toodt.py index bc7bbf27..19f2fd20 100644 --- a/tests/test_core/test_core_toodt.py +++ b/tests/test_core/test_core_toodt.py @@ -587,7 +587,7 @@ def testCoreToOdt_ConvertParagraphs(mockGUI): '' 'Scene' 'Regular paragraph' - 'withbreak' + 'withbreak' 'Left Align' '' )