diff options
author | 2019-04-11 17:59:26 +0300 | |
---|---|---|
committer | 2019-04-11 18:01:21 +0300 | |
commit | 2cc085f9ee3fa0abd793678f5d984423ccf4148d (patch) | |
tree | 37df07dcca1706ee2286eaa29604b8cd8d7799b8 /vnftest/tests/unit/core | |
parent | 3b9d9e7d03186f8925548b0ce6db5d80e2dfcb8f (diff) |
add unit tests
Issue-ID: VNFSDK-350
Change-Id: Ib40c66476f5d8e32fbb4032596f67700551a963d
Signed-off-by: Moshe <moshehoa@amdocs.com>
Diffstat (limited to 'vnftest/tests/unit/core')
-rw-r--r-- | vnftest/tests/unit/core/test_task.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vnftest/tests/unit/core/test_task.py b/vnftest/tests/unit/core/test_task.py index 7f26d61..abec5ae 100644 --- a/vnftest/tests/unit/core/test_task.py +++ b/vnftest/tests/unit/core/test_task.py @@ -67,6 +67,8 @@ class TaskTestCase(unittest.TestCase): mock_base_runner.Runner.get.return_value = runner t._run([step], 'dummy_case', False, "vnftest.out", {}) self.assertTrue(runner.run.called) + results = t.task_info.result() + self.assertEqual(results["testcases"][0]["status"], "FINISHED") def test_parse_suite_no_constraint_no_args(self): SAMPLE_step_PATH = "no_constraint_no_args_step_sample.yaml" |