Skip to content

Commit

Permalink
Tests: avoid import errors on raw GitHub clone
Browse files Browse the repository at this point in the history
Adds version.py file if missing to avoid errors when setting up
tests. Thanks to Tristan Lubinski.
  • Loading branch information
chapmanb committed Feb 5, 2018
1 parent 4391bb5 commit 29d2b35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Empty file modified tests/__init__.py
100755 → 100644
Empty file.
4 changes: 4 additions & 0 deletions tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ fi
unset PYTHONHOME
unset PYTHONPATH
export PYTHONNOUSERSITE=1
# Ensure version.py exists in raw cloned bcbio directory
if [ -d "../bcbio/pipeline" ]; then
[ -f ../bcbio/pipeline/version.py ] || touch ../bcbio/pipeline/version.py
fi
"$BCBIO_DIR/py.test" -v -s -m ${MARK} "$@"
1 change: 0 additions & 1 deletion tests/unit/rnaseq/test_ericscript.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
import mock

from bcbio.rnaseq import ericscript
from tests.unit.conftest import DummyFileTransaction
Expand Down

0 comments on commit 29d2b35

Please sign in to comment.