From 26f87181f8a8fc7fef58ddd1e52cb5f0edd641bb Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 7 Jul 2016 11:44:01 +0200 Subject: [test] toxify tests - move tests to root directory - split tests in different subdirectories - setup a small package with common test dependencies in /testing/test_soledad - add tox.ini that will: - install the test_soledad package and other test dependencies - install soledad common, client, server from the repository - run tests contianed in /testing/tests directory using pytest This commit also removes all oauth code from tests, as we have removed the u1db dependency (by importing it into the repo and naming it l2db) and don't neet oauth at all right now. --- testing/tox.ini | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 testing/tox.ini (limited to 'testing/tox.ini') diff --git a/testing/tox.ini b/testing/tox.ini new file mode 100644 index 00000000..0a8dda9d --- /dev/null +++ b/testing/tox.ini @@ -0,0 +1,21 @@ +[tox] +envlist = py27 + +[testenv] +commands = py.test {posargs} +changedir = tests +deps = + pytest + mock + testscenarios + setuptools-trial + pep8 + pdbpp + couchdb +# install soledad local packages + -e../common + -e../client + -e../server +setenv = + HOME=/tmp +install_command = pip install {opts} {packages} -- cgit v1.2.3 From 179dfe95102f7314ca6a59a95dd1080080a5724a Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 12 Jul 2016 03:24:44 +0200 Subject: add pep8/flake8 to tox --- testing/tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testing/tox.ini') diff --git a/testing/tox.ini b/testing/tox.ini index 0a8dda9d..3663eef3 100644 --- a/testing/tox.ini +++ b/testing/tox.ini @@ -2,10 +2,12 @@ envlist = py27 [testenv] -commands = py.test {posargs} +commands = py.test --pep8 {posargs} changedir = tests deps = pytest + pytest-flake8 + pytest-pep8 mock testscenarios setuptools-trial -- cgit v1.2.3