diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_parse.py b/tests/test_parse.py new file mode 100644 index 0000000..4daeebb --- /dev/null +++ b/tests/test_parse.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- + +import unittest + + +class TestParse(unittest.TestCase): + def test_dummy(self): + self.assertTrue(True) + + +if __name__ == '__main__': + unittest.main() diff --git a/tox.ini b/tox.ini index 8026422..1642acd 100644 --- a/tox.ini +++ b/tox.ini @@ -2,8 +2,11 @@ envlist = py, rst-lint, docs [testenv] -commands = python3 -m bio2bel_chebi deploy -passenv = ARTY_USERNAME ARTY_PASSWORD +commands = coverage run -p -m pytest --durations=20 tests {posargs} +whitelist_externals = + /bin/cat + /bin/cp + /bin/mkdir [testenv:rst-lint] commands = rst-lint README.rst @@ -24,3 +27,7 @@ commands = sphinx-build -W -b coverage -d {envtmpdir}/build/doctrees {envtmpdir}/source {envtmpdir}/build/coverage cat {envtmpdir}/build/coverage/c.txt cat {envtmpdir}/build/coverage/python.txt + +[testenv:deploy] +commands = python3 -m bio2bel_chebi deploy +passenv = ARTY_USERNAME ARTY_PASSWORD