summaryrefslogtreecommitdiffstats
path: root/tests/test_refs_transform.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-07-26 14:17:25 -0700
committerBryan Newbold <bnewbold@archive.org>2021-07-26 14:17:25 -0700
commit51a36f5e6069efedef0fbcd0ba319ced8f28eba4 (patch)
tree35645b5ad707b8f51b38dc3ea7ba0ab9b94353f2 /tests/test_refs_transform.py
parentbbdad7688b60de4cc5fb4e30ba80e73d2d2ac646 (diff)
downloadfatcat-scholar-51a36f5e6069efedef0fbcd0ba319ced8f28eba4.tar.gz
fatcat-scholar-51a36f5e6069efedef0fbcd0ba319ced8f28eba4.zip
make fmt
Diffstat (limited to 'tests/test_refs_transform.py')
-rw-r--r--tests/test_refs_transform.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/test_refs_transform.py b/tests/test_refs_transform.py
index b923492..078b73b 100644
--- a/tests/test_refs_transform.py
+++ b/tests/test_refs_transform.py
@@ -42,6 +42,7 @@ def test_transform_refs_grobid() -> None:
== "Tasa K, Baker R, Murray M. Using patient feedback for qua- lity improvement. Quality Management in Health Care 1996;8:206-19."
)
+
def test_transform_refs_crossref() -> None:
with open("tests/files/example_crossref_record.json", "r") as f:
@@ -68,23 +69,30 @@ def test_transform_refs_crossref() -> None:
assert refs[0].biblio.contrib_raw_names is not None
assert refs[0].biblio.contrib_raw_names[0] == "Churg"
assert refs[0].biblio.container_name == "Arch. Pathol. Lab. Med."
- assert refs[0].biblio.title == "The separation of benign and malignant mesothelial proliferations"
+ assert (
+ refs[0].biblio.title
+ == "The separation of benign and malignant mesothelial proliferations"
+ )
assert refs[0].biblio.year == 2012
assert refs[0].biblio.pages == "1217"
assert refs[0].biblio.volume == "136"
assert refs[0].biblio.doi == "10.5858/arpa.2012-0112-ra"
assert refs[0].biblio.unstructured is None
- assert refs[6].biblio.title == "Advances in Laser Remote Sensing – Selected Papers Presented at the 20th International Laser Radar Conference"
+ assert (
+ refs[6].biblio.title
+ == "Advances in Laser Remote Sensing – Selected Papers Presented at the 20th International Laser Radar Conference"
+ )
assert refs[6].biblio.year == 2001
assert refs[7].key == "CIT0041"
- assert refs[7].biblio.unstructured == "Linda Weiss,Creating Capitalism. Oxford: Blackwell, 1988. 272 pp. £29.95. ISBN 0 631 15733 6."
-
+ assert (
+ refs[7].biblio.unstructured
+ == "Linda Weiss,Creating Capitalism. Oxford: Blackwell, 1988. 272 pp. £29.95. ISBN 0 631 15733 6."
+ )
assert refs[8].key == "576_CR3"
assert refs[8].biblio.unstructured is not None
assert refs[8].biblio.title == "The NURBS Book, Monographs in Visual Communication"
assert refs[8].biblio.year == 1997
assert refs[8].biblio.version == "2"
-