aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-12-10 00:30:07 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-12-10 00:30:07 +0100
commit1d8aafede80ac9c0c1a2c676eab869d1279845a8 (patch)
tree514bb75baaeeef59e56cb59236f6bd0ef387081d /tests
parent1657965ce70a51532a3879dc4a7afed4ea076a8a (diff)
downloadfuzzycat-1d8aafede80ac9c0c1a2c676eab869d1279845a8.tar.gz
fuzzycat-1d8aafede80ac9c0c1a2c676eab869d1279845a8.zip
separate static data
Diffstat (limited to 'tests')
-rw-r--r--tests/data/release/f5ebjc63j5dzpct5hsme5j3ote29
-rw-r--r--tests/data/release/zeoquc2f4nbmdbmbcbkmkxmtzi44
-rw-r--r--tests/data/verify.csv1
-rw-r--r--tests/test_verify.py3
4 files changed, 76 insertions, 1 deletions
diff --git a/tests/data/release/f5ebjc63j5dzpct5hsme5j3ote b/tests/data/release/f5ebjc63j5dzpct5hsme5j3ote
new file mode 100644
index 0000000..7eca08b
--- /dev/null
+++ b/tests/data/release/f5ebjc63j5dzpct5hsme5j3ote
@@ -0,0 +1,29 @@
+{
+ "abstracts": [],
+ "container_id": "wwkgxanhx5efrbqepn7d4yhgge",
+ "contribs": [],
+ "ext_ids": {
+ "doi": "10.1016/0148-9062(96)83629-1"
+ },
+ "extra": {
+ "crossref": {
+ "alternative-id": [
+ "0148906296836291"
+ ],
+ "type": "journal-article"
+ }
+ },
+ "ident": "f5ebjc63j5dzpct5hsme5j3ote",
+ "language": "en",
+ "pages": "A328",
+ "publisher": "Elsevier BV",
+ "refs": [],
+ "release_stage": "published",
+ "release_type": "article-journal",
+ "release_year": 1996,
+ "revision": "852a8a08-23e6-466f-9c95-4c2c6367b379",
+ "state": "active",
+ "title": "Thermal constraints on disposal of heat-emitting waste in argillaceous rocks",
+ "volume": "33",
+ "work_id": "dfjtp6lyxncijbxp34exkkk6xa"
+}
diff --git a/tests/data/release/zeoquc2f4nbmdbmbcbkmkxmtzi b/tests/data/release/zeoquc2f4nbmdbmbcbkmkxmtzi
new file mode 100644
index 0000000..13e432a
--- /dev/null
+++ b/tests/data/release/zeoquc2f4nbmdbmbcbkmkxmtzi
@@ -0,0 +1,44 @@
+{
+ "abstracts": [],
+ "container_id": "c2hyf2djkvdbbd6hpr3s7otqcq",
+ "contribs": [
+ {
+ "extra": {
+ "seq": "first"
+ },
+ "index": 0,
+ "raw_name": "S.T. Horseman",
+ "role": "author"
+ },
+ {
+ "index": 1,
+ "raw_name": "T.J. McEwen",
+ "role": "author"
+ }
+ ],
+ "ext_ids": {
+ "doi": "10.1016/0013-7952(95)00046-1"
+ },
+ "extra": {
+ "crossref": {
+ "alternative-id": [
+ "0013795295000461"
+ ],
+ "type": "journal-article"
+ }
+ },
+ "ident": "zeoquc2f4nbmdbmbcbkmkxmtzi",
+ "issue": "1-4",
+ "language": "en",
+ "pages": "5-16",
+ "publisher": "Elsevier BV",
+ "refs": [],
+ "release_stage": "published",
+ "release_type": "article-journal",
+ "release_year": 1996,
+ "revision": "d302fc86-45f4-468a-aaf0-947a115eee07",
+ "state": "active",
+ "title": "Thermal constraints on disposal of heat-emitting waste in argillaceous rocks",
+ "volume": "41",
+ "work_id": "4adugyubj5g6nawywlsxt2nvwa"
+}
diff --git a/tests/data/verify.csv b/tests/data/verify.csv
index 18a899b..8bbc7a1 100644
--- a/tests/data/verify.csv
+++ b/tests/data/verify.csv
@@ -139,3 +139,4 @@ arqtphat7fashokettncepu7xe,v6p7xct6kfgwtdbh57zfjqmuua,Status.AMBIGUOUS,
zwru5ugcsfcyzeuqlygfw46vwq,b3uhit7b4vhvliocdzwxr7peyy,Status.AMBIGUOUS,Miss.CUSTOM_PREFIX_10_7916
s7a4o5v5gfg4tbzna6poyg7nzy,tcro5wr6brhqnf5wettyiauw34,Status.STRONG,OK.CUSTOM_BSI_SUBDOC
eomug3y4afbynhcyzrtcvki55u,zcu2pugta5fttnqltgersan52q,Status.DIFFERENT,Miss.COMPONENT
+f5ebjc63j5dzpct5hsme5j3ote,zeoquc2f4nbmdbmbcbkmkxmtzi,Status.AMBIGUOUS,
diff --git a/tests/test_verify.py b/tests/test_verify.py
index e3e05ad..e94b57a 100644
--- a/tests/test_verify.py
+++ b/tests/test_verify.py
@@ -48,7 +48,8 @@ def test_compare():
.format(a=a, b=b, base=FATCAT_BASE_URL, status=status, reason=reason))
continue
assert status_mapping[
- expected_status] == status, "status: want {expected_status}, got {status} {reason} for {base}release/{a} {base}release/{b}".format(
+ expected_status] == status, "status: want {expected_status} ({expected_reason}), got {status} {reason} for {base}release/{a} {base}release/{b}".format(
+ expected_reason=expected_reason,
expected_status=expected_status,
status=status,
reason=reason,