From 59272c3f1994eec87051a83555e42d2860c616a8 Mon Sep 17 00:00:00 2001 From: Alexander Maretskiy Date: Mon, 11 Jan 2016 12:43:16 +0200 Subject: [PATCH] [Scenario][Reports] Improve scenario output format Updates: * make charts.Chart plugin based, so all output related charts are used as plugins * Unify output format schema for additive and complete data, this includes renaming keys: - chart -> chart_plugin - widget -> chart_plugin - items -> data Change-Id: Ic2a7c9308e50d8c28b7811d61a268af9bb89ce5f --- tests/unit/fakes.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/unit/fakes.py b/tests/unit/fakes.py index e05effc8..da391f4f 100644 --- a/tests/unit/fakes.py +++ b/tests/unit/fakes.py @@ -1599,12 +1599,14 @@ class FakeScenario(scenario.Scenario): return {"data": {"a": 1}, "error": None} def with_add_output(self): - self.add_output(additive={"title": "Additive", "chart": "Chart", + self.add_output(additive={"title": "Additive", "description": "Additive description", - "items": [["a", 1]]}, - complete={"title": "Complete", "widget": "Widget", + "data": [["a", 1]], + "chart_plugin": "FooPlugin"}, + complete={"title": "Complete", "description": "Complete description", - "data": [["a", [[1, 2], [2, 3]]]]}) + "data": [["a", [[1, 2], [2, 3]]]], + "chart_plugin": "BarPlugin"}) def too_long(self, **kwargs): pass