refactor tests around py.test

This commit is contained in:
Benjamin Dauvergne 2016-02-01 17:59:01 +01:00
parent 1d659b1b21
commit f69e313ce3
5 changed files with 4 additions and 4 deletions

View File

@ -96,4 +96,4 @@ setuptools.setup(
install_requires=[ install_requires=[
'pycrypto >= 2.5' 'pycrypto >= 2.5'
], ],
cmdclass={'test': TestCommand, 'sdist': eo_sdist}) )

View File

@ -6,8 +6,8 @@
[testenv] [testenv]
# django.contrib.auth is not tested it does not work with our templates # django.contrib.auth is not tested it does not work with our templates
commands = commands =
coverage erase py.test --junitxml=junit.xml --cov-report xml --cov=eopayment/ tests
coverage run --source=. -a ./setup.py test
coverage xml
usedevelop = True usedevelop = True
deps = coverage deps = coverage
pytest
pytest-cov