From 84a44a0cf70e2e55a13e4e994836ee074b7039aa Mon Sep 17 00:00:00 2001 From: Michal Jagiello Date: Tue, 6 Oct 2020 09:56:13 +0000 Subject: Collect steps execution result Create a decorator to collect step execution result and store them in storage class. Storage class prepare a dictionary with step class name and execution result. Issue-ID: INT-1733 Change-Id: I9c4030a0740085a9acca461c1581683c469ecbcf Signed-off-by: Michal Jagiello --- tests/test_reports_collection.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/test_reports_collection.py (limited to 'tests/test_reports_collection.py') diff --git a/tests/test_reports_collection.py b/tests/test_reports_collection.py new file mode 100644 index 0000000..264b6b4 --- /dev/null +++ b/tests/test_reports_collection.py @@ -0,0 +1,10 @@ + +from onaptests.steps.reports_collection import ReportsCollection + + +def test_reports_collection(): + rc = ReportsCollection() + assert rc.report == {} + + rc.put({"a": "b"}) + assert rc.report == {"a": "b"} -- cgit 1.2.3-korg