Skip to content

Commit

Permalink
Update test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolgyes authored Feb 19, 2020
1 parent ff2f83a commit a0e44ac
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ set -e
pwd

PYTHON="python3 -m coverage run -a --source src/"
$PYTHON ./zenodo_get.py
$PYTHON ./zenodo_get.py -h
$PYTHON src/zenodo_get.py
$PYTHON src/zenodo_get.py -h

# tests expected to fail
$PYTHON ./zenodo_get.py invalid_doi && false || true
$PYTHON ./zenodo_get.py -1 x && false || true
$PYTHON ./zenodo_get.py 0 x && false || true
$PYTHON ./zenodo_get.py https://invalid && false || true
$PYTHON src/zenodo_get.py invalid_doi && false || true
$PYTHON src/zenodo_get.py -1 x && false || true
$PYTHON src/zenodo_get.py 0 x && false || true
$PYTHON src/zenodo_get.py https://invalid && false || true

# tests expected to pass
$PYTHON ./zenodo_get.py 1215979 -m -e -k
$PYTHON ./zenodo_get.py -r 1215979 -w urls.txt -n
$PYTHON ./zenodo_get.py -r 1215979 -w -
$PYTHON ./zenodo_get.py 10.5281/zenodo.1215979 -R 3 -p 2 -n
$PYTHON ./zenodo_get.py -d 10.5281/zenodo.1215979
$PYTHON src/zenodo_get.py 1215979 -m -e -k
$PYTHON src/zenodo_get.py -r 1215979 -w urls.txt -n
$PYTHON src/zenodo_get.py -r 1215979 -w -
$PYTHON src/zenodo_get.py 10.5281/zenodo.1215979 -R 3 -p 2 -n
$PYTHON src/zenodo_get.py -d 10.5281/zenodo.1215979

echo " TESTS ARE OK! "

0 comments on commit a0e44ac

Please sign in to comment.