[Scenario] Add method `Scenario.add_output'

This patch adds method `Scenario.add_output' so output
can be added according to the related specification.

Change-Id: I0bb50dfbf89fbf59c415d7d551b6ca07fe16b64d
This commit is contained in:
Alexander Maretskiy 2015-12-09 17:23:08 +02:00 committed by Boris Pavlovic
parent 771acbff46
commit 4da3eed0a9

View File

@ -1598,6 +1598,14 @@ class FakeScenario(scenario.Scenario):
def with_output(self, **kwargs):
return {"data": {"a": 1}, "error": None}
def with_add_output(self):
self.add_output(additive={"title": "Additive", "chart": "Chart",
"description": "Additive description",
"items": [["a", 1]]},
complete={"title": "Complete", "widget": "Widget",
"description": "Complete description",
"data": [["a", [[1, 2], [2, 3]]]]})
def too_long(self, **kwargs):
pass