summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Fikl <alexfikl@gmail.com>2024-05-09 12:18:39 +0200
committerAlex Fikl <alexfikl@gmail.com>2024-05-09 15:08:14 +0300
commite0b9123eb45921e6b1e28bc5aa73ebbb240b84f3 (patch)
tree7dc344337ae98b5696d532e5af020cc9540d0d15
parent4f6e8b22429ba5009920632536b59e5aeb579e1d (diff)
tests: rename crossref tests
-rw-r--r--tests/resources/crossref/test_1_multiple_authors.json (renamed from tests/resources/crossref/test1.json)0
-rw-r--r--tests/resources/crossref/test_1_multiple_authors_out.json (renamed from tests/resources/crossref/test1_out.json)0
-rw-r--r--tests/resources/crossref/test_2_abstract.json (renamed from tests/resources/crossref/test_2.json)0
-rw-r--r--tests/resources/crossref/test_2_abstract_out.json (renamed from tests/resources/crossref/test_2_out.json)0
-rw-r--r--tests/resources/crossref/test_3_conference.json (renamed from tests/resources/crossref/test_conference.json)0
-rw-r--r--tests/resources/crossref/test_3_conference_out.json (renamed from tests/resources/crossref/test_conference_out.json)4
-rw-r--r--tests/test_crossref.py6
7 files changed, 4 insertions, 6 deletions
diff --git a/tests/resources/crossref/test1.json b/tests/resources/crossref/test_1_multiple_authors.json
index 67003ad3..67003ad3 100644
--- a/tests/resources/crossref/test1.json
+++ b/tests/resources/crossref/test_1_multiple_authors.json
diff --git a/tests/resources/crossref/test1_out.json b/tests/resources/crossref/test_1_multiple_authors_out.json
index 9ee383cd..9ee383cd 100644
--- a/tests/resources/crossref/test1_out.json
+++ b/tests/resources/crossref/test_1_multiple_authors_out.json
diff --git a/tests/resources/crossref/test_2.json b/tests/resources/crossref/test_2_abstract.json
index 2b9646f6..2b9646f6 100644
--- a/tests/resources/crossref/test_2.json
+++ b/tests/resources/crossref/test_2_abstract.json
diff --git a/tests/resources/crossref/test_2_out.json b/tests/resources/crossref/test_2_abstract_out.json
index a88440d2..a88440d2 100644
--- a/tests/resources/crossref/test_2_out.json
+++ b/tests/resources/crossref/test_2_abstract_out.json
diff --git a/tests/resources/crossref/test_conference.json b/tests/resources/crossref/test_3_conference.json
index 0adb01d0..0adb01d0 100644
--- a/tests/resources/crossref/test_conference.json
+++ b/tests/resources/crossref/test_3_conference.json
diff --git a/tests/resources/crossref/test_conference_out.json b/tests/resources/crossref/test_3_conference_out.json
index facc9125..c2b3bab6 100644
--- a/tests/resources/crossref/test_conference_out.json
+++ b/tests/resources/crossref/test_3_conference_out.json
@@ -115,8 +115,6 @@
"doi": "10.1145/3184558.3186235",
"year": 2018,
"author": "Bühmann, Lorenz and Lehmann, Jens and Westphal, Patrick and Bin, Simon",
- "isbn": [
- "9781450356404"
- ],
+ "isbn": "9781450356404",
"title": "DL-Learner Structured Machine Learning on Semantic Web Data"
}
diff --git a/tests/test_crossref.py b/tests/test_crossref.py
index 78f26e57..4616e94b 100644
--- a/tests/test_crossref.py
+++ b/tests/test_crossref.py
@@ -32,9 +32,9 @@ def test_get_data(tmp_config: TemporaryConfiguration) -> None:
@pytest.mark.parametrize(("doi", "basename"), [
- ("10.1103/physrevb.89.140501", "test1"),
- ("10.1103/physrevb.89.140501", "test_2"),
- ("10.1145/3184558.3186235", "test_conference")
+ ("10.1103/physrevb.89.140501", "test_1_multiple_authors"),
+ ("10.1103/physrevb.89.140501", "test_2_abstract"),
+ ("10.1145/3184558.3186235", "test_3_conference")
])
def test_doi_to_data(tmp_config: TemporaryConfiguration, monkeypatch,
doi: str, basename: str) -> None: