Skip to content

Commit

Permalink
+ added test for issue 118
Browse files Browse the repository at this point in the history
  • Loading branch information
erlehmann committed Feb 23, 2014
1 parent 0d17de8 commit eec019f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/118-plos-license-statement.do
@@ -0,0 +1,10 @@
#!/bin/sh
# Tests if the CC BY 4.0 License used by PLOS is picked up by OAMI.
echo 10.1371/journal.pbio.1001781 | \
../oa-get download-metadata pmc_doi && \
../oa-cache find-media pmc_doi
LICENSE="$(
sqlite3 $(../oa-cache print-database-path pmc_doi) \
'select * from model_article' | cut -d'|' -f10
)"
test "$LICENSE" = "http://creativecommons.org/licenses/by/4.0/"
1 change: 1 addition & 0 deletions tests/all.do
@@ -0,0 +1 @@
redo 118-plos-license-statement

0 comments on commit eec019f

Please sign in to comment.