From 1ac142fa1e785aade8272759d32561fc716e8740 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sun, 19 Feb 2017 14:42:33 +0100 Subject: Replace nose with pytest (utils) --- utils/tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/tox.ini') diff --git a/utils/tox.ini b/utils/tox.ini index 1308f7505..2a29d1525 100644 --- a/utils/tox.ini +++ b/utils/tox.ini @@ -11,6 +11,9 @@ deps = -rtest-requirements.txt py35-flake8: flake8-bugbear commands = + # Needed to make detox work, since it ignores usedevelop + # https://github.com/tox-dev/tox/issues/180 + unit: pip install -e . + unit: pytest flake8: python setup.py flake8 - unit: python setup.py nosetests pylint: python setup.py lint -- cgit v1.2.3 From 7ca7fbdae8ab8fd279a4af9b5d6f140b1aff72e9 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sun, 19 Feb 2017 22:43:56 +0100 Subject: Accept extra positional arguments in tox Example: tox -e py35-ansible22-unit -- --collect-only --- utils/tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/tox.ini') diff --git a/utils/tox.ini b/utils/tox.ini index 2a29d1525..2524923cb 100644 --- a/utils/tox.ini +++ b/utils/tox.ini @@ -14,6 +14,6 @@ commands = # Needed to make detox work, since it ignores usedevelop # https://github.com/tox-dev/tox/issues/180 unit: pip install -e . - unit: pytest + unit: pytest {posargs} flake8: python setup.py flake8 pylint: python setup.py lint -- cgit v1.2.3