From 4da3eed0a915b370d83a57d1982fa3ea827fa46a Mon Sep 17 00:00:00 2001 From: Alexander Maretskiy Date: Wed, 9 Dec 2015 17:23:08 +0200 Subject: [PATCH] [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 --- tests/unit/fakes.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unit/fakes.py b/tests/unit/fakes.py index 399e9d41..e05effc8 100644 --- a/tests/unit/fakes.py +++ b/tests/unit/fakes.py @@ -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