From a2f81aa1901cb8e40a38102897645a0c4e73d202 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 9 Dec 2023 12:48:21 +0100 Subject: [PATCH] rename html merge function --- pytest_abra/coordinator.py | 4 ++-- pytest_abra/html_helper.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pytest_abra/coordinator.py b/pytest_abra/coordinator.py index 86cecdf..70706e8 100644 --- a/pytest_abra/coordinator.py +++ b/pytest_abra/coordinator.py @@ -7,7 +7,7 @@ from loguru import logger from pytest_abra.dir_manager import DirManager from pytest_abra.env_manager import EnvFile, EnvManager -from pytest_abra.html_helper import merge_html_files +from pytest_abra.html_helper import merge_html_reports from pytest_abra.runner import Runner from pytest_abra.utils import rmtree @@ -61,7 +61,7 @@ class Coordinator: in_path = str(self.DIR.RECORDS / "html") out_path = str(self.DIR.RECORDS / "full-report.html") title = "combined.html" - merge_html_files(in_path, out_path, title) + merge_html_reports(in_path, out_path, title) def collect_traces(self): """moves all traces into SESSION/RECORDS dir diff --git a/pytest_abra/html_helper.py b/pytest_abra/html_helper.py index 6e81c7e..6080b2f 100644 --- a/pytest_abra/html_helper.py +++ b/pytest_abra/html_helper.py @@ -12,7 +12,7 @@ from packaging import version CHECKBOX_REGEX = r"^(?P0|[1-9]\d*) (?P.*)" -def merge_html_files(in_path: str, out_path: str, title: str): +def merge_html_reports(in_path: str, out_path: str, title: str): paths = get_html_files(in_path, out_path) if not paths: raise RuntimeError(f"Unable to find html files in {in_path}")