From 26a7badd037af6ffa9ef8d27c1ce770867ea4db6 Mon Sep 17 00:00:00 2001 From: noopur Date: Fri, 8 Nov 2024 11:12:34 +0000 Subject: [PATCH] Comment added Signed-off-by: noopur --- tests/openfl_e2e/requirements.txt | 8 ++++---- tests/openfl_e2e/utils/xml_helper.py | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/openfl_e2e/requirements.txt b/tests/openfl_e2e/requirements.txt index de48d405e4d..e9190362e74 100644 --- a/tests/openfl_e2e/requirements.txt +++ b/tests/openfl_e2e/requirements.txt @@ -1,7 +1,7 @@ +lxml pytest -pytest-xdist -pytest-ordering pytest-html -lxml +pytest-ordering +pytest-xdist pyyaml -ruamel.yaml \ No newline at end of file +ruamel.yaml diff --git a/tests/openfl_e2e/utils/xml_helper.py b/tests/openfl_e2e/utils/xml_helper.py index 8d37104b497..56ced867db5 100644 --- a/tests/openfl_e2e/utils/xml_helper.py +++ b/tests/openfl_e2e/utils/xml_helper.py @@ -8,8 +8,11 @@ # Initialize the XML parser parser = etree.XMLParser(recover=True, encoding='utf-8') tree = ET.parse("results/results.xml", parser=parser) + +# Get the root element testsuites = tree.getroot() + def get_test_status(result): """ Get the test status/verdict