From 9bb85082e261f5df9dbd0a6bbeb6e315d8f67cdc Mon Sep 17 00:00:00 2001 From: Stamatis Katsaounis Date: Wed, 27 Mar 2019 09:38:14 +0200 Subject: Fix VVP test case This patch adds check for no environment variables provided to container configuration. Furthermore, it changes the check results file to a list of check result files. Change-Id: I2112ee1fd4b3156608d8a27dd3b9c90dbe35a24c Signed-off-by: Stamatis Katsaounis Co-Authored-By: Panagiotis Karalis --- dovetail/tests/unit/test_report.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dovetail/tests/unit') diff --git a/dovetail/tests/unit/test_report.py b/dovetail/tests/unit/test_report.py index e44c6ac8..53b06cb9 100644 --- a/dovetail/tests/unit/test_report.py +++ b/dovetail/tests/unit/test_report.py @@ -980,7 +980,7 @@ class ReportTesting(unittest.TestCase): file_path = 'file_path' crawler = dt_report.OnapVvpCrawler() - result = crawler.crawl(None, file_path) + result = crawler.crawl(None, [file_path]) mock_path.exists.assert_called_once_with(file_path) logger_obj.error.assert_called_once_with( @@ -1000,7 +1000,7 @@ class ReportTesting(unittest.TestCase): mock_open.return_value.__enter__.return_value = file_obj crawler = dt_report.OnapVvpCrawler() - result = crawler.crawl(testcase_obj, file_path) + result = crawler.crawl(testcase_obj, [file_path]) expected = {'criteria': 'PASS'} mock_path.exists.assert_called_once_with(file_path) @@ -1022,7 +1022,7 @@ class ReportTesting(unittest.TestCase): mock_open.return_value.__enter__.return_value = file_obj crawler = dt_report.OnapVvpCrawler() - result = crawler.crawl(testcase_obj, file_path) + result = crawler.crawl(testcase_obj, [file_path]) expected = {'criteria': 'FAIL'} mock_path.exists.assert_called_once_with(file_path) @@ -1044,7 +1044,7 @@ class ReportTesting(unittest.TestCase): mock_open.return_value.__enter__.return_value = file_obj crawler = dt_report.OnapVvpCrawler() - result = crawler.crawl(testcase_obj, file_path) + result = crawler.crawl(testcase_obj, [file_path]) expected = {'criteria': 'FAIL'} mock_path.exists.assert_called_once_with(file_path) @@ -1068,7 +1068,7 @@ class ReportTesting(unittest.TestCase): mock_open.return_value.__enter__.return_value = file_obj crawler = dt_report.OnapVvpCrawler() - result = crawler.crawl(testcase_obj, file_path) + result = crawler.crawl(testcase_obj, [file_path]) expected = {'criteria': 'FAIL'} mock_path.exists.assert_called_once_with(file_path) -- cgit 1.2.3-korg