File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
420408def 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">
You can’t perform that action at this time.
0 commit comments