rename html merge function
This commit is contained in:
parent
873bf73ae8
commit
a2f81aa190
2 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ from loguru import logger
|
||||||
|
|
||||||
from pytest_abra.dir_manager import DirManager
|
from pytest_abra.dir_manager import DirManager
|
||||||
from pytest_abra.env_manager import EnvFile, EnvManager
|
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.runner import Runner
|
||||||
from pytest_abra.utils import rmtree
|
from pytest_abra.utils import rmtree
|
||||||
|
|
||||||
|
|
@ -61,7 +61,7 @@ class Coordinator:
|
||||||
in_path = str(self.DIR.RECORDS / "html")
|
in_path = str(self.DIR.RECORDS / "html")
|
||||||
out_path = str(self.DIR.RECORDS / "full-report.html")
|
out_path = str(self.DIR.RECORDS / "full-report.html")
|
||||||
title = "combined.html"
|
title = "combined.html"
|
||||||
merge_html_files(in_path, out_path, title)
|
merge_html_reports(in_path, out_path, title)
|
||||||
|
|
||||||
def collect_traces(self):
|
def collect_traces(self):
|
||||||
"""moves all traces into SESSION/RECORDS dir
|
"""moves all traces into SESSION/RECORDS dir
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ from packaging import version
|
||||||
CHECKBOX_REGEX = r"^(?P<num>0|[1-9]\d*) (?P<txt1>.*)"
|
CHECKBOX_REGEX = r"^(?P<num>0|[1-9]\d*) (?P<txt1>.*)"
|
||||||
|
|
||||||
|
|
||||||
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)
|
paths = get_html_files(in_path, out_path)
|
||||||
if not paths:
|
if not paths:
|
||||||
raise RuntimeError(f"Unable to find html files in {in_path}")
|
raise RuntimeError(f"Unable to find html files in {in_path}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue