From aa60e5f7fd7ea179dec51edf86a53c66d5683ed6 Mon Sep 17 00:00:00 2001 From: vladimirhasko Date: Thu, 23 Mar 2023 08:58:29 +0000 Subject: [PATCH] spliting one case to two --- otc_doc_convertor/tests/unit/test_convertor.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/otc_doc_convertor/tests/unit/test_convertor.py b/otc_doc_convertor/tests/unit/test_convertor.py index 50565c6e..f87c30ab 100644 --- a/otc_doc_convertor/tests/unit/test_convertor.py +++ b/otc_doc_convertor/tests/unit/test_convertor.py @@ -167,10 +167,22 @@ class TestConvertor(TestCase): def test_streamline_html_escape_12(self): test_data= """

DLI:*:*:database:databases.dbname

-

DLI:*:*:queue:queues.*

""" # noqa expected = """

DLI:``*``:``*``:database:databases.dbname

+ """ # noqa + soup = bs4.BeautifulSoup(test_data, 'lxml') + res = self.convertor.streamline_html(soup, "dummy") + self.assertEqual( + str(res.find('p')), + expected.strip(), + ) + + def test_streamline_html_escape_13(self): + test_data= """ +

DLI:*:*:queue:queues.*

+ """ # noqa + expected = """

DLI:``*``:``*``:queue:queues.*

""" # noqa soup = bs4.BeautifulSoup(test_data, 'lxml')