aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-06-06 12:20:00 +0000
committerLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-06-06 12:32:30 +0000
commitc458ace517bb640de7ec05cd2a26e33cfcac21e2 (patch)
treefa33046b361bd69280b52d3ed180db4c22f3de3d /tests
parent74fa2a41627e8f2e807bb1c80d928dec3ccf8d85 (diff)
Add component name to the JSON report format
Issue-ID: INT-2235 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I81274e0cca45ef86490e8004c594d7e85bf3c539
Diffstat (limited to 'tests')
-rw-r--r--tests/test_generate_json.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_generate_json.py b/tests/test_generate_json.py
index b5bc48c..7c5bcd7 100644
--- a/tests/test_generate_json.py
+++ b/tests/test_generate_json.py
@@ -19,12 +19,12 @@ class TestReportsCollection(unittest.TestCase):
settings.HTML_REPORTING_FILE_NAME = "reporting.html"
settings.JSON_REPORTING_FILE_NAME = "reporting.json"
- self.collection.put(Report("Step 1", ReportStepStatus.PASS, 10.0))
- self.collection.put(Report("Step 2", ReportStepStatus.FAIL, 5.0))
- self.collection.put(Report("Step 3", ReportStepStatus.NOT_EXECUTED, 0.0))
- self.collection.put(Report("Step 10", ReportStepStatus.NOT_EXECUTED, 0.0))
- self.collection.put(Report("Step 12", ReportStepStatus.PASS, 20.0))
- self.collection.put(Report("Step 21", ReportStepStatus.FAIL, 15.0))
+ self.collection.put(Report("Step 1", ReportStepStatus.PASS, 10.0, "TEST"))
+ self.collection.put(Report("Step 2", ReportStepStatus.FAIL, 5.0, "TEST"))
+ self.collection.put(Report("Step 3", ReportStepStatus.NOT_EXECUTED, 0.0, "TEST"))
+ self.collection.put(Report("Step 10", ReportStepStatus.NOT_EXECUTED, 0.0, "TEST"))
+ self.collection.put(Report("Step 12", ReportStepStatus.PASS, 20.0, "TEST"))
+ self.collection.put(Report("Step 21", ReportStepStatus.FAIL, 15.0, "TEST"))
report_dict = self.collection.generate_report()
report_json_path = os.path.join(settings.REPORTING_FILE_DIRECTORY, settings.JSON_REPORTING_FILE_NAME)