Browse Source

old ellipsis... (...)

pull/317/head 2.2.2
Florian Mounier 9 years ago
parent
commit
4c5771db96
  1. 6
      pygal/test/test_config.py

6
pygal/test/test_config.py

@ -557,7 +557,7 @@ def test_classes(Chart):
chart = Chart(classes=())
assert not chart.render_pyquery().attr('class')
chart = Chart(classes=(...,))
chart = Chart(classes=(_ellipsis,))
assert chart.render_pyquery().attr('class') == 'pygal-chart'
chart = Chart(classes=('graph',))
@ -566,8 +566,8 @@ def test_classes(Chart):
chart = Chart(classes=('pygal-chart', 'graph'))
assert chart.render_pyquery().attr('class') == 'pygal-chart graph'
chart = Chart(classes=(..., 'graph'))
chart = Chart(classes=(_ellipsis, 'graph'))
assert chart.render_pyquery().attr('class') == 'pygal-chart graph'
chart = Chart(classes=('graph', ...))
chart = Chart(classes=('graph', _ellipsis))
assert chart.render_pyquery().attr('class') == 'graph pygal-chart'

Loading…
Cancel
Save