aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/files/datacite/datacite_result_01.json
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-02 17:35:54 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-02 17:35:54 +0100
commit96e38edde79735b4080ec08d57e9f54759e97b61 (patch)
tree2798719086819b747adab8d48adbb0c59b5ac9f5 /python/tests/files/datacite/datacite_result_01.json
parentb87ba235c0a7da15d70c5ab7fa367d7b9c1fb981 (diff)
downloadfatcat-96e38edde79735b4080ec08d57e9f54759e97b61.tar.gz
fatcat-96e38edde79735b4080ec08d57e9f54759e97b61.zip
datacite: add conversion fixtures
The `test_datacite_conversions` function will compare an input (datacite) document to an expected output (release entity as JSON). This way, it should not be too hard to add more cases by adding: input, output - and by increasing the counter in the range loop within the test. To view input and result side by side with vim, change into the test directory and run: tests/files/datacite $ ./caseview.sh 18
Diffstat (limited to 'python/tests/files/datacite/datacite_result_01.json')
-rw-r--r--python/tests/files/datacite/datacite_result_01.json32
1 files changed, 32 insertions, 0 deletions
diff --git a/python/tests/files/datacite/datacite_result_01.json b/python/tests/files/datacite/datacite_result_01.json
new file mode 100644
index 00000000..f8c6b930
--- /dev/null
+++ b/python/tests/files/datacite/datacite_result_01.json
@@ -0,0 +1,32 @@
+{
+ "extra": {
+ "datacite": {
+ "license": [
+ {
+ "lang": "de",
+ "rights": "Standard (Creative Commons - Namensnennung - Weitergabe unter gleichen Bedingungen) - http://www.ub.uni-heidelberg.de/helios/digi/nutzung/Welcome.html"
+ }
+ ]
+ }
+ },
+ "title": "Ferdinand Gaillard, [1]: n\u00e9 \u00e0 Paris le 16 janvier 1834, mort \u00e0 Paris le 19 janvier 1887",
+ "release_type": "article-journal",
+ "release_stage": "published",
+ "release_year": 1887,
+ "ext_ids": {
+ "doi": "10.11588/diglit.25558.39"
+ },
+ "publisher": "University Library Heidelberg",
+ "language": "fr",
+ "contribs": [
+ {
+ "index": 0,
+ "raw_name": "Dargenty, G.",
+ "given_name": "G.",
+ "surname": "Dargenty",
+ "role": "author"
+ }
+ ],
+ "refs": [],
+ "abstracts": []
+} \ No newline at end of file