From: Alex Morega Date: Fri, 5 Jul 2013 11:05:17 +0000 (+0200) Subject: run the test suite using py.test X-Git-Tag: 1.0~110^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=214ba14520549ec345be62ca9d2bb1647faa4d84;p=thirdparty%2Fbabel.git run the test suite using py.test --- diff --git a/.travis.yml b/.travis.yml index 641c1d60..4f61b347 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ python: - "pypy" install: - - pip install pytz + - pip install pytz pytest - pip install --editable . script: make test diff --git a/Makefile b/Makefile index 4c2088f7..474a98b9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ test: import-cldr - @python setup.py test + @py.test babel import-cldr: @./scripts/download_import_cldr.py diff --git a/conftest.py b/conftest.py new file mode 100644 index 00000000..328728a7 --- /dev/null +++ b/conftest.py @@ -0,0 +1 @@ +collect_ignore = ['babel/messages/tests/data'] diff --git a/setup.cfg b/setup.cfg index 01bb9544..2acfc4da 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,6 @@ [egg_info] tag_build = dev tag_svn_revision = true + +[pytest] +addopts = --doctest-modules diff --git a/tox.ini b/tox.ini index af06b733..0f1a9db6 100644 --- a/tox.ini +++ b/tox.ini @@ -2,5 +2,7 @@ envlist = py26, py27, pypy, py33 [testenv] -deps = pytz -commands = python setup.py test [] +deps = + pytz + pytest +commands = py.test babel []