Browse Source

Fix tox.ini

pull/28/merge
Guillaume Ayoub 12 years ago
parent
commit
696d854832
  1. 8
      pygal/test/test_graph.py
  2. 16
      tox.ini

8
pygal/test/test_graph.py

@ -64,7 +64,7 @@ def test_render_to_png(Chart, datas):
def test_metadata(Chart):
chart = Chart()
v = range(1, 8)
v = range(7)
if Chart == pygal.XY:
v = map(lambda x: (x, x + 1), v)
@ -86,7 +86,11 @@ def test_metadata(Chart):
'Five', 'http://7.example.com/', 'Seven'):
assert md in cut(q('desc'), 'text')
assert len(v) == len(q('.tooltip-trigger').siblings('.value'))
if Chart == pygal.Pie:
# Slices with value 0 are not rendered
assert len(v) - 1 == len(q('.tooltip-trigger').siblings('.value'))
else:
assert len(v) == len(q('.tooltip-trigger').siblings('.value'))
def test_empty_lists(Chart):

16
tox.ini

@ -6,16 +6,8 @@ deps =
pytest
pytest-cov
pyquery
scipy
numpy
[testenv:py26]
commands=py.test [] --cov {envdir}/lib/python2.6/site-packages/pygal {envdir}/lib/python2.6/site-packages/pygal/test
[testenv:py27]
commands=py.test [] --cov {envdir}/lib/python2.7/site-packages/pygal {envdir}/lib/python2.7/site-packages/pygal/test
[testenv:py32]
commands=py.test [] --cov {envdir}/lib/python3.2/site-packages/pygal {envdir}/lib/python3.2/site-packages/pygal/test
[testenv:py33]
commands=py.test [] --cov {envdir}/lib/python3.3/site-packages/pygal {envdir}/lib/python3.3/site-packages/pygal/test
commands=
pip install scipy
py.test [] --cov {envsitepackagesdir}/pygal {envsitepackagesdir}/pygal/test

Loading…
Cancel
Save