diff options
author | Alex Morega <alex@grep.ro> | 2013-07-05 13:05:17 +0200 |
---|---|---|
committer | Alex Morega <alex@grep.ro> | 2013-07-05 13:09:53 +0200 |
commit | 214ba14520549ec345be62ca9d2bb1647faa4d84 (patch) | |
tree | 17505c68d01e6143d5cb2c27bc382e74255682e7 | |
parent | a059a63ca0be5b0341ae2317442d263fc7a3bf15 (diff) | |
download | babel-214ba14520549ec345be62ca9d2bb1647faa4d84.tar.gz |
run the test suite using py.test
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | conftest.py | 1 | ||||
-rw-r--r-- | setup.cfg | 3 | ||||
-rw-r--r-- | tox.ini | 6 |
5 files changed, 10 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 641c1d6..4f61b34 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 @@ -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 0000000..328728a --- /dev/null +++ b/conftest.py @@ -0,0 +1 @@ +collect_ignore = ['babel/messages/tests/data'] @@ -1,3 +1,6 @@ [egg_info] tag_build = dev tag_svn_revision = true + +[pytest] +addopts = --doctest-modules @@ -2,5 +2,7 @@ envlist = py26, py27, pypy, py33 [testenv] -deps = pytz -commands = python setup.py test [] +deps = + pytz + pytest +commands = py.test babel [] |