diff options
| author | JocelynDelalande <JocelynDelalande@users.noreply.github.com> | 2018-01-07 00:27:42 +0100 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2018-01-07 00:27:42 +0100 |
| commit | 2019b398f164aa3f7edb8af439c92f1a32d2e920 (patch) | |
| tree | 53f839f424f79d34c319c42b74f69fc6076fc470 /tox.ini | |
| parent | 3b2e11ab6369dfa853383840dc28915b60c2d062 (diff) | |
| download | ihatemoney-mirror-2019b398f164aa3f7edb8af439c92f1a32d2e920.zip ihatemoney-mirror-2019b398f164aa3f7edb8af439c92f1a32d2e920.tar.gz ihatemoney-mirror-2019b398f164aa3f7edb8af439c92f1a32d2e920.tar.bz2 | |
manage commands testing (#313)
* Rename manage.ConfigTemplate → manage.GenerateConfig
To be consistent with the CLI name: `generate-config`.
* Add tests for manage.py commands
* Run tests from pip-installed package
To be able to detect packaging-related issues on test runs.
refs #305
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -6,22 +6,31 @@ skip_missing_interpreters = True commands = python --version - py.test ihatemoney/tests/tests.py + py.test --pyargs ihatemoney.tests.tests + deps = -rdev-requirements.txt -rrequirements.txt -install_command = pip install --pre {opts} {packages} +# To be sure we are importing ihatemoney pkg from pip-installed version +changedir = /tmp + +install_command = + pip install --pre {opts} {packages} + pip install . + [testenv:docs] commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html deps = -rdocs/requirements.txt +changedir = {toxinidir} [testenv:lint] commands = flake8 ihatemoney deps = -rdev-requirements.txt +changedir = {toxinidir} [flake8] exclude = migrations |
