Improve code coverage and API test cases for the Event Trigger module. Fixes #5088

This commit is contained in:
Pradip Parkale
2020-02-14 11:19:34 +05:30
committed by Akshay Joshi
parent 019932c323
commit e9f16a29cf
14 changed files with 1292 additions and 71 deletions

View File

@@ -1198,3 +1198,21 @@ def generate_scenarios(key, test_cases):
tup = (test_name, dict(scenario))
scenarios.append(tup)
return scenarios
def create_expected_output(parameters, actual_data):
"""
This function creates the dict using given parameter and actual data
:param parameters:
:param actual_data:
:return: expected data
:type: dict
"""
expected_output = {}
for key in parameters:
for value in actual_data:
expected_output[key] = value
actual_data.remove(value)
break
return expected_output