diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-06-03 23:30:44 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-06-03 23:30:46 -0700 |
commit | 4c90b94c24e9e78382d12947fb27c203318d6c9c (patch) | |
tree | 56756e5ff572201369634a5cd90c7e529e032e13 /tests | |
parent | ba7295cdf09c6b2bf288db85e15aa44b6782da06 (diff) | |
download | fatcat-scholar-4c90b94c24e9e78382d12947fb27c203318d6c9c.tar.gz fatcat-scholar-4c90b94c24e9e78382d12947fb27c203318d6c9c.zip |
flake8-annotation linting
Added some new annotations; need to finish more.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_djvu_parse.py | 2 | ||||
-rw-r--r-- | tests/test_scrub.py | 2 | ||||
-rw-r--r-- | tests/test_transform.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_djvu_parse.py b/tests/test_djvu_parse.py index 1f23de2..777f8bf 100644 --- a/tests/test_djvu_parse.py +++ b/tests/test_djvu_parse.py @@ -2,7 +2,7 @@ import io from fatcat_scholar.djvu import djvu_extract_leaf_texts -def test_djvu_extract_leaf_texts(): +def test_djvu_extract_leaf_texts() -> None: # https://archive.org/details/ERIC_ED441501 with open("tests/files/ERIC_ED441501_djvu.xml", "r") as f: diff --git a/tests/test_scrub.py b/tests/test_scrub.py index 692ed64..2cd68cc 100644 --- a/tests/test_scrub.py +++ b/tests/test_scrub.py @@ -1,7 +1,7 @@ from fatcat_scholar.schema import * -def test_scrub(): +def test_scrub() -> None: vectors = [ ( "“Please clean this piece… of text</b>„", diff --git a/tests/test_transform.py b/tests/test_transform.py index 21efa51..e073591 100644 --- a/tests/test_transform.py +++ b/tests/test_transform.py @@ -4,7 +4,7 @@ from fatcat_scholar.schema import * from fatcat_scholar.api_entities import * -def test_es_release_from_release(): +def test_es_release_from_release() -> None: with open("tests/files/release_hsmo6p4smrganpb3fndaj2lon4.json", "r") as f: release = entity_from_json(f.read(), ReleaseEntity) @@ -17,7 +17,7 @@ def test_es_release_from_release(): assert obj.doi_prefix == "10.7717" -def test_es_biblio_from_release(): +def test_es_biblio_from_release() -> None: with open("tests/files/release_hsmo6p4smrganpb3fndaj2lon4.json", "r") as f: release = entity_from_json(f.read(), ReleaseEntity) |