Skip to content

Commit dabc1b0

Browse files
committed
Minor Cleanup
1 parent 13bd87a commit dabc1b0

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

test/test_page.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -405,18 +405,6 @@ def test_page_all_arbitrary_text_and_words(page: Page) -> None:
405405
]
406406

407407

408-
# def test_from_xml_file(tmp_path):
409-
# content = "<root>Hello world.</root>"
410-
# xml_file = tmp_path / "test.xml"
411-
# xml_file.write_text(content, encoding="utf-8")
412-
#
413-
# with patch.object(Page, 'from_xml_string', return_value='MOCK') as mock:
414-
# result = Page.from_xml_file(xml_file)
415-
#
416-
# mock.assert_called_once_with(content)
417-
# assert result == 'MOCK'
418-
419-
420408
def test_from_xml_file(tmp_path: Path) -> None:
421409
content = """<?xml version='1.0' encoding='utf-8'?>
422410
<PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15/pagecontent.xsd">

0 commit comments

Comments
 (0)