From 1cd63c3e4a6ead15151d139e5881d451b81558bd Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 17 Dec 2015 18:08:43 -0800 Subject: [PATCH] Adding a unit test --- tests/core_tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/core_tests.py b/tests/core_tests.py index a9aac3220..3f9c0b56f 100644 --- a/tests/core_tests.py +++ b/tests/core_tests.py @@ -34,6 +34,9 @@ class LiveTest(TestCase): if hasattr(viz, 'get_json'): self.client.get(viz.get_json()) + def test_csv(self): + self.client.get('/panoramix/explore/table/1/?viz_type=table&granularity=ds&since=100+years&until=now&metrics=count&groupby=name&limit=50&show_brush=y&show_brush=false&show_legend=y&show_brush=false&rich_tooltip=y&show_brush=false&show_brush=false&show_brush=false&show_brush=false&y_axis_format=&x_axis_showminmax=y&show_brush=false&line_interpolation=linear&rolling_type=None&rolling_periods=&time_compare=&num_period_compare=&where=&having=&flt_col_0=gender&flt_op_0=in&flt_eq_0=&flt_col_0=gender&flt_op_0=in&flt_eq_0=&slice_id=14&slice_name=Boys&collapsed_fieldsets=&action=&datasource_name=birth_names&datasource_id=1&datasource_type=table&previous_viz_type=line&csv=true') + def test_dashboard(self): for dash in db.session.query(models.Dashboard).all(): self.client.get(dash.url)