diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/release/s7a4o5v5gfg4tbzna6poyg7nzy | 23 | ||||
-rw-r--r-- | tests/data/release/tcro5wr6brhqnf5wettyiauw34 | 20 | ||||
-rw-r--r-- | tests/data/verify.csv | 1 | ||||
-rw-r--r-- | tests/test_verify.py | 4 |
4 files changed, 47 insertions, 1 deletions
diff --git a/tests/data/release/s7a4o5v5gfg4tbzna6poyg7nzy b/tests/data/release/s7a4o5v5gfg4tbzna6poyg7nzy new file mode 100644 index 0000000..02169b3 --- /dev/null +++ b/tests/data/release/s7a4o5v5gfg4tbzna6poyg7nzy @@ -0,0 +1,23 @@ +{ + "abstracts": [], + "contribs": [], + "ext_ids": { + "doi": "10.3403/02279101u" + }, + "extra": { + "crossref": { + "type": "standard" + }, + "subtitle": [ + "Fixed pipette method" + ] + }, + "ident": "s7a4o5v5gfg4tbzna6poyg7nzy", + "publisher": "BSI British Standards", + "refs": [], + "release_type": "standard", + "revision": "9ae088bf-5480-4a5b-b68d-356096d28d16", + "state": "active", + "title": "Determination of particle size distribution by gravitational liquid sedimentation methods", + "work_id": "chjktubyxbdpviowq6p4agfh5y" +} diff --git a/tests/data/release/tcro5wr6brhqnf5wettyiauw34 b/tests/data/release/tcro5wr6brhqnf5wettyiauw34 new file mode 100644 index 0000000..2247102 --- /dev/null +++ b/tests/data/release/tcro5wr6brhqnf5wettyiauw34 @@ -0,0 +1,20 @@ +{ + "abstracts": [], + "contribs": [], + "ext_ids": { + "doi": "10.3403/bsiso13317" + }, + "extra": { + "crossref": { + "type": "standard" + } + }, + "ident": "tcro5wr6brhqnf5wettyiauw34", + "publisher": "BSI British Standards", + "refs": [], + "release_type": "standard", + "revision": "23fae426-a22e-4226-8400-f085d7eb0c56", + "state": "active", + "title": "Determination of particle size distribution by gravitational liquid sedimentation methods", + "work_id": "hh6o7mm3ivblng4t2dhuhzocwm" +} diff --git a/tests/data/verify.csv b/tests/data/verify.csv index 389762c..d3c8dbe 100644 --- a/tests/data/verify.csv +++ b/tests/data/verify.csv @@ -137,3 +137,4 @@ voruupqxhvggfex4zlczcmjxxu,jg72qhdvmncfdfxg5l47hw3uba,Status.AMBIGUOUS,OK.DUMMY 6ysfa7ncx5fldmvmwvjgpf2i6e,yp3rs3xb5ra2riyx5xayrlqfum,Status.EXACT,OK.WORK_ID arqtphat7fashokettncepu7xe,v6p7xct6kfgwtdbh57zfjqmuua,Status.AMBIGUOUS, zwru5ugcsfcyzeuqlygfw46vwq,b3uhit7b4vhvliocdzwxr7peyy,Status.AMBIGUOUS,Miss.CUSTOM_PREFIX_10_7916 +s7a4o5v5gfg4tbzna6poyg7nzy,tcro5wr6brhqnf5wettyiauw34,Status.STRONG,OK.CUSTOM_BSI_SUBDOC diff --git a/tests/test_verify.py b/tests/test_verify.py index 5a60326..e3e05ad 100644 --- a/tests/test_verify.py +++ b/tests/test_verify.py @@ -38,7 +38,9 @@ def test_compare(): try: a, b, expected_status, expected_reason = row except ValueError as exc: - pytest.fail("invalid test file, maybe too many (or few) commas in row {}? {}".format(i + 1, exc)) + pytest.fail( + "invalid test file, maybe too many (or few) commas in row {}? {}".format( + i + 1, exc)) status, reason = compare(load_release_ident(a), load_release_ident(b)) if not expected_status or expected_status.lower() == "todo": logger.warning( |