From 6da43afacb2708778448320c1c19302c01c42ea3 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Mon, 24 Jun 2013 09:38:04 +0200 Subject: [PATCH] Include tests on secondary axis --- pygal/test/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pygal/test/__init__.py b/pygal/test/__init__.py index 9d9f671..5fbff95 100644 --- a/pygal/test/__init__.py +++ b/pygal/test/__init__.py @@ -43,7 +43,7 @@ def pytest_generate_tests(metafunc): ]) -def make_data(chart, datas, secondary=False): +def make_data(chart, datas): def get(data): if isinstance(chart, pygal.XY): if isinstance(chart, pygal.DateY): @@ -52,8 +52,8 @@ def make_data(chart, datas, secondary=False): return data return cut(data) - for data in datas: + for i, data in enumerate(datas): chart.add(data[0], get(data[1]), - secondary=secondary) + secondary=bool(i % 2)) return chart