File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import tempfile
2- import pathlib
2+ from pathlib import Path
33
44import pytest
55from hypothesis import given , assume
@@ -417,7 +417,7 @@ def test_page_all_arbitrary_text_and_words(page: Page) -> None:
417417# assert result == 'MOCK'
418418
419419
420- def test_from_xml_file (tmp_path ) :
420+ def test_from_xml_file (tmp_path : Path ) -> None :
421421 content = """<?xml version='1.0' encoding='utf-8'?>
422422 <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">
423423 <Metadata>
@@ -448,7 +448,7 @@ def test_from_xml_file(tmp_path):
448448 assert result .image_filename == "a.jpg"
449449
450450
451- def test_from_xml_missing_file (tmp_path ) :
451+ def test_from_xml_missing_file (tmp_path : Path ) -> None :
452452 missing_file = tmp_path / "does_not_exist.xml"
453453
454454 with pytest .raises (Exception , match = "Page: file does not exist" ):
You can’t perform that action at this time.
0 commit comments