Files
doczyai-pipelines/archive/Doczy.AI_Automation/utils/report.py
T

19 lines
475 B
Python
Raw Normal View History

2024-05-20 17:46:45 +05:30
import datetime
2024-05-07 18:13:51 +05:30
import pytest
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
def pytest_runtest_makereport(item, call):
outcome = yield
rep = outcome.get_result()
# if rep.when == "call":
2024-05-20 17:46:45 +05:30
# @pytest.hookimpl(tryfirst=True)
# def pytest_html_report_title(report):
# """Set the title of the HTML report dynamically."""
# current_datetime = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
# report.title = f"Test Report {current_datetime}"