summaryrefslogtreecommitdiffstats
path: root/vnftest/tests/unit
diff options
context:
space:
mode:
authorMoshe <moshehoa@amdocs.com>2019-03-03 12:06:08 +0200
committerMoshe <moshehoa@amdocs.com>2019-03-03 14:08:37 +0200
commit946470e3a794cc98e2d5b20af74ae3e5dac7d315 (patch)
tree4ac808375554f214da14aa97ca60241bee504845 /vnftest/tests/unit
parente10a5af4bb80d0a9ad4b0bd56959091ba5ff4a9a (diff)
Allow multiple contexts per test case
Issue-ID: VNFSDK-350 Change-Id: Ib189a748bd41c48ef55959cecf221971d15099b5 Signed-off-by: Moshe <moshehoa@amdocs.com> refactor context handling Change-Id: Ic2bcdbcc98addeeef2cecd42c025a6a25b630b07 Signed-off-by: Moshe <moshehoa@amdocs.com> produce coverage report Issue-ID: VNFSDK-350 Change-Id: I88722d36710e09d8a2f9309a1214fd3ab53a8c83 Signed-off-by: Moshe <moshehoa@amdocs.com>
Diffstat (limited to 'vnftest/tests/unit')
-rw-r--r--vnftest/tests/unit/onap/test_rest_call.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnftest/tests/unit/onap/test_rest_call.py b/vnftest/tests/unit/onap/test_rest_call.py
index 6735774..8e6b402 100644
--- a/vnftest/tests/unit/onap/test_rest_call.py
+++ b/vnftest/tests/unit/onap/test_rest_call.py
@@ -51,7 +51,7 @@ class RestCallTestCase(testtools.TestCase):
def test_run(self, mock_execute_operation):
mock_execute_operation.return_value = {'body': {'value': 'output1'}}
t = task.Task({})
- context_cfg = {}
+ context_cfg = {'task_id': '123', 'name': 'dummy'}
context = Context.get("CSAR")
context.init(context_cfg)
t.context = context