Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mihai Bivol <mihai.bivol@cern.ch>
- Loading branch information
1 parent
98a70bb
commit b121999
Showing
18 changed files
with
429 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/fixtures/update_scenarios/author_affiliation_addition/description.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Preprint should add new affiliation and preserve the others. |
42 changes: 42 additions & 0 deletions
42
tests/fixtures/update_scenarios/author_affiliation_addition/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"authors": [ | ||
{ | ||
"affiliations": [ | ||
{ | ||
"value": "UC, Santa Barbara" | ||
} | ||
], | ||
"curated_relation": false, | ||
"full_name": "Cox, Brian E." | ||
}, | ||
{ | ||
"affiliations": [ | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "UC, Berkeley" | ||
}, | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "LBL, Berkeley" | ||
}, | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "Santa Barbara, KITP" | ||
}, | ||
{ | ||
"value": "BBC" | ||
} | ||
], | ||
"curated_relation": false, | ||
"full_name": "O'Brien, Dara", | ||
"inspire_id": "INSPIRE-00113241" | ||
} | ||
] | ||
} | ||
|
38 changes: 38 additions & 0 deletions
38
tests/fixtures/update_scenarios/author_affiliation_addition/head.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"authors": [ | ||
{ | ||
"affiliations": [ | ||
{ | ||
"value": "UC, Santa Barbara" | ||
} | ||
], | ||
"curated_relation": false, | ||
"full_name": "Cox, Brian E." | ||
}, | ||
{ | ||
"affiliations": [ | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "UC, Berkeley" | ||
}, | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "LBL, Berkeley" | ||
}, | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "Santa Barbara, KITP" | ||
} | ||
], | ||
"curated_relation": false, | ||
"full_name": "O'Brien, Dara", | ||
"inspire_id": "INSPIRE-00113241" | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/fixtures/update_scenarios/author_affiliation_addition/root.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"authors": [ | ||
{ | ||
"full_name": "Cox, Brian" | ||
}, | ||
{ | ||
"full_name": "O Brien, Dara", | ||
"inspire_id": "INSPIRE-00113241" | ||
} | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
tests/fixtures/update_scenarios/author_affiliation_addition/update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"authors": [ | ||
{ | ||
"full_name": "Cox, Brian" | ||
}, | ||
{ | ||
"affiliations": [ | ||
{ | ||
"value": "Santa Barbara, KITP" | ||
}, | ||
{ | ||
"value": "BBC" | ||
} | ||
], | ||
"full_name": "O Brien, Dara", | ||
"inspire_id": "INSPIRE-00113241" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Title addition in Update should preserve both titles with the HEAD first. |
49 changes: 49 additions & 0 deletions
49
tests/fixtures/update_scenarios/title_addition/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"titles": [ | ||
{ | ||
"title": "Effects of Stargazing, Live", | ||
"source": "curator" | ||
}, | ||
{ | ||
"title": "Effects of Stargazing, Live", | ||
"source": "preprint" | ||
} | ||
], | ||
"authors": [ | ||
{ | ||
"affiliations": [ | ||
{ | ||
"value": "UC, Santa Barbara" | ||
} | ||
], | ||
"curated_relation": false, | ||
"full_name": "Cox, Brian E." | ||
}, | ||
{ | ||
"affiliations": [ | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "UC, Berkeley" | ||
}, | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "LBL, Berkeley" | ||
}, | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "Santa Barbara, KITP" | ||
} | ||
], | ||
"curated_relation": false, | ||
"full_name": "O'Brien, Dara", | ||
"inspire_id": "INSPIRE-00113241" | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"titles": [ | ||
{ | ||
"title": "Effects of Stargazing, Live", | ||
"source": "curator" | ||
} | ||
], | ||
"authors": [ | ||
{ | ||
"affiliations": [ | ||
{ | ||
"value": "UC, Santa Barbara" | ||
} | ||
], | ||
"curated_relation": false, | ||
"full_name": "Cox, Brian E." | ||
}, | ||
{ | ||
"affiliations": [ | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "UC, Berkeley" | ||
}, | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "LBL, Berkeley" | ||
}, | ||
{ | ||
"record": { | ||
"$ref": "http://localhost:5000/api/institutions/903889" | ||
}, | ||
"value": "Santa Barbara, KITP" | ||
} | ||
], | ||
"curated_relation": false, | ||
"full_name": "O'Brien, Dara", | ||
"inspire_id": "INSPIRE-00113241" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"authors": [ | ||
{ | ||
"full_name": "Cox, Brian" | ||
}, | ||
{ | ||
"full_name": "O Brien, Dara", | ||
"inspire_id": "INSPIRE-00113241" | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
tests/fixtures/update_scenarios/title_addition/update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"titles": [ | ||
{ | ||
"title": "Effects of Stargazing, Live", | ||
"source": "preprint" | ||
} | ||
], | ||
"authors": [ | ||
{ | ||
"full_name": "Cox, Brian" | ||
}, | ||
{ | ||
"full_name": "O Brien, Dara", | ||
"inspire_id": "INSPIRE-00113241" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Update title change should preserve both titles with the changed title for the second one. |
Oops, something went wrong.