Skip to content

Commit 13bd87a

Browse files
committed
Fix missing type annotations in tests
1 parent 196de96 commit 13bd87a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/test_page.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import tempfile
2-
import pathlib
2+
from pathlib import Path
33

44
import pytest
55
from 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"):

0 commit comments

Comments
 (0)