Open
Description
The maximum file size is used here to truncate the asset name
pytest-html/src/pytest_html/basereport.py
Line 50 in 4b88ee4
and used together here with 'assets' to build a write destination for media assets
pytest-html/src/pytest_html/report.py
Line 39 in 4b88ee4
on windows systems with a 256 character path length this will cause the write to silently fail and the following read when creating the report to not find the given asset.
conftest.py
@pytest.mark.hookwrapper
def pytest_runtest_makereport(item, call):
_ = call
outcome = yield
report = outcome.get_result()
extra = getattr(report, 'extra', list())
report.extra = extra
browser: WebDriver = item.funcargs.get('browser', None)
screenshot = browser.get_screenshot_as_base64()
extra.append(pytest_html.extras.png(screenshot))
test_stuff.py
def test_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(browser):
assert False
Metadata
Metadata
Assignees
Labels
No labels