Browse Source

Fix python 2 tests

pull/89/merge
Florian Mounier 11 years ago
parent
commit
3a33f963d4
  1. 4
      pygal/test/test_config.py

4
pygal/test/test_config.py

@ -211,12 +211,12 @@ def test_logarithmic_big_scale():
def test_value_formatter():
line = Line(value_formatter=lambda x: str(x) + '')
line = Line(value_formatter=lambda x: str(x) + u(''))
line.add('_', [10 ** 4, 10 ** 5, 23 * 10 ** 4])
q = line.render_pyquery()
assert len(q(".y.axis .guides")) == 11
assert q(".axis.y text").map(texts) == list(map(
lambda x: str(x) + '', map(float, range(20000, 240000, 20000))))
lambda x: str(x) + u(''), map(float, range(20000, 240000, 20000))))
def test_logarithmic_small_scale():

Loading…
Cancel
Save