aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/data/release/bg4gzikycnfvtkfwl5qnxeywwa46
-rw-r--r--tests/data/release/fbdg4rdgw5halgkhr4qcsex25y44
-rw-r--r--tests/data/verify.csv13
-rw-r--r--tests/test_verify.py3
4 files changed, 99 insertions, 7 deletions
diff --git a/tests/data/release/bg4gzikycnfvtkfwl5qnxeywwa b/tests/data/release/bg4gzikycnfvtkfwl5qnxeywwa
new file mode 100644
index 0000000..d231aa5
--- /dev/null
+++ b/tests/data/release/bg4gzikycnfvtkfwl5qnxeywwa
@@ -0,0 +1,46 @@
+{
+ "abstracts": [
+ {
+ "content": "<jats:p>With the introduction of Google Scholar in November 2004, research libraries faced the decision of whether to integrate this \"blended\" resource into their collections and services via their library Web sites. The authors are members of a Web Advisory Committee and present a case study detailing Rutgers University Libraries' experience with integrating Google Scholar onto the library's Web site. A descriptive study of all ARL university members' library Web sites also was undertaken to determine how other academic libraries were treating Google Scholar in July 2005. Did ARL libraries place Google Scholar on alphabetical lists of indexes and databases, subject guides, or in OPACs, for instance? Results from this study are presented and implications of putting Google Scholar on the Web site are discussed for all major user groups.</jats:p>",
+ "mimetype": "application/xml+jats",
+ "sha1": "551e7360fd4baeb71d048785322a053f5c50af08"
+ }
+ ],
+ "container_id": "unjqf6gtazhcdn4rnpcjympuve",
+ "contribs": [
+ {
+ "extra": {
+ "seq": "first"
+ },
+ "index": 0,
+ "raw_name": "Laura Bowering Mullen",
+ "role": "author"
+ },
+ {
+ "index": 1,
+ "raw_name": "Karen A. Hartman",
+ "role": "author"
+ }
+ ],
+ "ext_ids": {
+ "doi": "10.5860/crl.67.2.106"
+ },
+ "extra": {
+ "crossref": {
+ "type": "journal-article"
+ }
+ },
+ "ident": "bg4gzikycnfvtkfwl5qnxeywwa",
+ "pages": "106-122",
+ "publisher": "American Library Association",
+ "refs": [],
+ "release_date": "2006-03-01",
+ "release_stage": "published",
+ "release_type": "article-journal",
+ "release_year": 2006,
+ "revision": "2048d69a-db59-4112-9ac8-c15b87b545c4",
+ "state": "active",
+ "title": "Google Scholar and the Library Web Site: The Early Response by ARL Libraries",
+ "volume": "67",
+ "work_id": "xmbhvvau5vafzi6pli6rmeqeva"
+}
diff --git a/tests/data/release/fbdg4rdgw5halgkhr4qcsex25y b/tests/data/release/fbdg4rdgw5halgkhr4qcsex25y
new file mode 100644
index 0000000..f9ed8c0
--- /dev/null
+++ b/tests/data/release/fbdg4rdgw5halgkhr4qcsex25y
@@ -0,0 +1,44 @@
+{
+ "abstracts": [
+ {
+ "content": "With the introduction of Google Scholar in November 2004, research libraries faced the decision of whether to integrate this \"blended\" resource into their collections and services via their library Web sites. The authors are members of a Web Advisory Committee and present a case study detailing Rutgers University Libraries' experience with integrating Google Scholar onto the library's Web site. A descriptive study of all ARL university members' library Web sites also was undertaken to determine how other academic libraries were treating Google Scholar in July 2005. Did ARL libraries place Google Scholar on alphabetical lists of indexes and databases, subject guides, or in OPACs, for instance? Results from this study are presented and implications of putting Google Scholar on the Web site are discussed for all major user groups.",
+ "lang": "en",
+ "mimetype": "text/plain",
+ "sha1": "a055b7fd4a0c1e3338719b937d27a00a6ee85110"
+ }
+ ],
+ "contribs": [
+ {
+ "given_name": "Laura Bowering",
+ "index": 0,
+ "raw_name": "Laura Bowering Mullen",
+ "role": "author",
+ "surname": "Mullen"
+ },
+ {
+ "given_name": "Karen A.",
+ "index": 1,
+ "raw_name": "Karen A. Hartman",
+ "role": "author",
+ "surname": "Hartman"
+ }
+ ],
+ "ext_ids": {
+ "doi": "10.7282/t3kh0kq0"
+ },
+ "extra": {
+ "datacite": {
+ "resourceTypeGeneral": "Text"
+ }
+ },
+ "ident": "fbdg4rdgw5halgkhr4qcsex25y",
+ "publisher": "ACRL (Association of College and Research Libraries)",
+ "refs": [],
+ "release_stage": "published",
+ "release_type": "article-journal",
+ "release_year": 2006,
+ "revision": "dd4d43f8-954e-4826-8480-44e65087e9ee",
+ "state": "active",
+ "title": "Google Scholar and the Library Web Site: The Early Response by ARL Libraries",
+ "work_id": "l7sprlnz3vhqffso55t2shrhv4"
+}
diff --git a/tests/data/verify.csv b/tests/data/verify.csv
index af125d2..c349129 100644
--- a/tests/data/verify.csv
+++ b/tests/data/verify.csv
@@ -12,7 +12,7 @@ knwc764q25f33ib6qnwo7pyaui,n74tqiqi5jcx5d6vl5f7lpokaa,Status.DIFFERENT,Miss.CONT
eo4qptzoqrholjslj7nemlne2y,zisq3tsezjcejinlpf7qgk6z2i,Status.DIFFERENT,Miss.YEAR
crsd5c2fhvd7hodbd4trne3lgi,4547ybo5hvf4xhlh5triaccxai,Status.DIFFERENT,Miss.YEAR
egxon2iqljf47c4stvacnccvwy,swuxb5owx5g4hff3c7ur5x3awy,Status.DIFFERENT,Miss.YEAR
-kob434ccgbhu3ecnwnqzsb6e3a,wbw3dpl44zew3bjcwfvqtk2b2q,Status.DIFFERENT,OK.DUMMY
+kob434ccgbhu3ecnwnqzsb6e3a,wbw3dpl44zew3bjcwfvqtk2b2q,Status.AMBIGUOUS,OK.DUMMY
c2pranaprjhrxk7x5euws32cg4,liarb7xuizewdafcubg2z3dwou,Status.DIFFERENT,Miss.CONTRIB_INTERSECTION_EMPTY
tyokc7ccfjaw5nimkkl32dl6ta,gyyxomlfkzfannusvzoypbnel4,Status.AMBIGUOUS,Miss.BLACKLISTED
2wakwcyb2zhbla2aao3g6ajfli,dryvgf7v3jeergr3gendplglqq,Status.DIFFERENT,Miss.CONTRIB_INTERSECTION_EMPTY
@@ -36,7 +36,7 @@ mkqmxbrhozhxphemdgshl57m3u,ahlp3vywzzb5fh5tbjskaym3ri,Status.DIFFERENT,Miss.CONT
2hquztvjlrai3frazkmb6icgzy,ygkmoig5fjhtbg3rcobuy67pnu,Status.AMBIGUOUS,Miss.SHORT_TITLE
uzrpjthgpbb2hhacohndcgj3qm,gxbp2vmubnhgrhfobb7wceujvm,Status.STRONG,OK.ARXIV_VERSION
fmeud4dykjfudb5kjr2fgmaneq,iid2bnrjjbegtpgmpuppjou4k4,Status.DIFFERENT,Miss.SUBTITLE
-zmivcpjvhba25ldkx27d24oefa,mjapiqe2nzcy3fs3hriw253dye,Status.EXACT,OK.FIGSHARE_VERSION
+zmivcpjvhba25ldkx27d24oefa,mjapiqe2nzcy3fs3hriw253dye,Status.STRONG,OK.FIGSHARE_VERSION
lynlkp7wh5hn3mlpzcfz4faoqi,yrbvjd4xrjaq3jxt7pkheysclm,Status.DIFFERENT,Miss.YEAR
t3vpox5wrvbgtcigp6a6o64oey,q5yaj5zbzjctzapb5bztzctsoe,Status.DIFFERENT,Miss.YEAR
65qtai5dmjb2hmkwa73nwafyhu,p4lk4tbohjat3g5nn5pb3kjdyu,Status.DIFFERENT,Miss.CONTRIB_INTERSECTION_EMPTY
@@ -55,15 +55,15 @@ wif435fwunfpfd46vvxo3at5ya,fy3j2l4s55b7ffltpiaic2jj7i,Status.DIFFERENT,Miss.YEAR
huophilkpbh2ddemt7okzzkuyq,crle5axqrfhfdob464wlwhfrf4,Status.AMBIGUOUS,Miss.SHORT_TITLE
dcq2jgd5abbjflzun4n3v6gjh4,ptovjgczrvft5fq2plyldafniq,Status.DIFFERENT,Miss.YEAR
7ah6efvk2ncjzgywch2cmtfumq,nj7v4e3cxbfybozjmdiuwqo4sm,Status.DIFFERENT,Miss.RELEASE_TYPE
-eu4xst6zx5atfj37mvwdm54opq,7b7vnb7bc5g5va4yk72ruajok4,Status.EXACT,OK.FIGSHARE_VERSION
+eu4xst6zx5atfj37mvwdm54opq,7b7vnb7bc5g5va4yk72ruajok4,Status.STRONG,OK.FIGSHARE_VERSION
6ovhnujfsff2nhnoeimjcckgta,qeujgsfrmvft7k7r474maekvua,Status.DIFFERENT,Miss.DATASET_DOI
muk4xhjhubc3xn6qqddllgfsly,2gywie7yqfflnl6tljfo36keqi,Status.STRONG,OK.ARXIV_VERSION
iywyis7npngxxbco6fgjrclrzy,anhsfjxg3few5nkfsvheehiebq,Status.DIFFERENT,Miss.BOOK_CHAPTER
rk7mn5uaqjaslgcxc2nl6ijpaq,td3rnxzbxzeslj6ijoce3mtxcq,Status.STRONG,OK.ARXIV_VERSION
ohkfrjjcxfcavoqoqt52wi6eke,egufgu3yubgthex3y7fdt7uupa,Status.DIFFERENT,Miss.DATASET_DOI
-dklwsz4w3rdlfddif4pcxb6ngm,wsbinmv7lragjnaedbgws6bztm,Status.DIFFERENT,OK.DUMMY
+dklwsz4w3rdlfddif4pcxb6ngm,wsbinmv7lragjnaedbgws6bztm,Status.AMBIGUOUS,OK.DUMMY
jizydliu2vclvpdtcrajlvuq2m,3g6mdd3tvjabdaez6mwcycso3q,Status.STRONG,OK.SLUG_TITLE_AUTHOR_MATCH
-fvrscdvsznb4zlhuadd6ar7ot4,57la45yryjd73gav22bnl4lyni,Status.EXACT,OK.FIGSHARE_VERSION
+fvrscdvsznb4zlhuadd6ar7ot4,57la45yryjd73gav22bnl4lyni,Status.STRONG,OK.FIGSHARE_VERSION
6fedywjyynbxhdqv3etxjuqhba,gls2x7ca4nhzrkf437gdnj6ekq,Status.DIFFERENT,Miss.YEAR
7lepq6lyyfepdjat6ohpeqycdu,cfm6qhhxovferl2fahf6jmcsiu,Status.DIFFERENT,Miss.YEAR
ijbm7t2mpjcrrjazrmeli6b42a,7ijg4ar62rgo3olfbxltltrzc4,Status.EXACT,OK.TITLE_AUTHOR_MATCH
@@ -77,7 +77,7 @@ vz7q453kr5ds3ptsldwxedbiii,2wzybzqlmjhjfh75cxjohbvzi4,Status.DIFFERENT,Miss.RELE
efumvvpw6jbb7ehp2qfdatgxzy,funn7cwjbrgefji27tzpl4avuu,Status.STRONG,OK.ARXIV_VERSION
pjvosq3ulzeb5d6w7zijrbz75y,pxkm2asxjnflzkdi5qnfd5fpt4,Status.DIFFERENT,Miss.BOOK_CHAPTER
ji3qg5sajndt7p54u7wumqsjye,hxau2e34bnhhbeucfdrncgmcby,Status.DIFFERENT,Miss.CONTRIB_INTERSECTION_EMPTY
-2gpvznjjcfbmhats6ot2vsodju,qk6arua2snaobfvdvlfvjp3yeq,Status.DIFFERENT,
+2gpvznjjcfbmhats6ot2vsodju,qk6arua2snaobfvdvlfvjp3yeq,Status.AMBIGUOUS,
75ky5xniobchzbhzwhmwhu5uoa,uvgwfvwnnbg7xchy63bloyrwvi,Status.STRONG,
jdtngtiz3bdqboypujoni2x3ry,byh7xr5qhjca3bw53ivdotck3e,Status.EXACT,
5lk635o65nc2tnkus3pkf2ggeq,hqrvhbvocvaabg6nr5p43tl3uq,TODO,
@@ -99,3 +99,4 @@ bkonm3q2dbegde3i4sl6h6lkvq,hhyknlu55vdezg3xsqxa4as2eu,Status.EXACT,OK.TITLE_AUTH
bkonm3q2dbegde3i4sl6h6lkvq,s7mpon5havhx3eil563hcz6anu,Status.EXACT,OK.DOI
hhyknlu55vdezg3xsqxa4as2eu,s7mpon5havhx3eil563hcz6anu,Status.EXACT,OK.TITLE_AUTHOR_MATCH
r63fa4mqkfb3leafypdwnnj7jq,usifdrmhdbfhlodgaqgzwzi4da,,
+bg4gzikycnfvtkfwl5qnxeywwa,fbdg4rdgw5halgkhr4qcsex25y,Status.EXACT,
diff --git a/tests/test_verify.py b/tests/test_verify.py
index 0c04d53..7875d06 100644
--- a/tests/test_verify.py
+++ b/tests/test_verify.py
@@ -44,7 +44,8 @@ def test_compare():
logger.warning(
"skipping test {base}/release/{a} {base}/release/{b} -- no result defined (we think {status}, {reason})"
.format(a=a, b=b, base=FATCAT_BASE_URL, status=status, reason=reason))
- assert status == status, "status: want {}, got {} for {} {}".format(
+ continue
+ assert status_mapping[expected_status] == status, "status: want {}, got {} for {} {}".format(
expected_status, status, a, b)
if expected_reason:
assert expected_reason.lower() == reason.lower(