Skip to content

Commit f0fbe2a

Browse files
authored
Merge pull request #298 from dhalperi/fix-embedded-image
Fix embedded images (and videos)
2 parents 484c0ce + 9e06ccb commit f0fbe2a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Release Notes
22
-------------
33

4+
**2.1.2 (unreleased)**
5+
6+
* Fix issue with missing image or video in extras. (`#265 <https://github.com/pytest-dev/pytest-html/issues/265>`_ and `pytest-selenium#237 <https://github.com/pytest-dev/pytest-selenium/issues/237>`_)
7+
8+
* Thanks to `@p00j4 <https://github.com/p00j4>`_ and `@anothermattbrown <https://github.com/anothermattbrown>`_ for reporting and `@christiansandberg <https://github.com/christiansandberg>`_ and `@superdodd <https://github.com/superdodd>`_ and `@dhalperi <https://github.com/dhalperi>`_ for the fix
9+
410
**2.1.1 (2020-03-18)**
511

612
* Fix issue with funcargs causing failures. (`#282 <https://github.com/pytest-dev/pytest-html/issues/282>`_)

testing/test_pytest_html.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,10 @@ def {test_name}():
591591
file_name = f"test_very_long_test_name.py__{test_name}_0_0.png"[-255:]
592592
src = "assets/" + file_name
593593
link = f'<a class="image" href="{src}" target="_blank">'
594+
img = f'<img src="{src}"/>'
594595
assert result.ret
595596
assert link in html
597+
assert img in html
596598
assert os.path.exists(src)
597599

598600
def test_extra_fixture(self, testdir):

0 commit comments

Comments
 (0)