From 30339ed18b25efa80a8c49c44b73890909911a13 Mon Sep 17 00:00:00 2001 From: chrishavlin Date: Fri, 6 Dec 2024 15:56:17 -0600 Subject: [PATCH] fix extras deprecation warning --- yt_idv/tests/test_yt_idv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yt_idv/tests/test_yt_idv.py b/yt_idv/tests/test_yt_idv.py index 67a0e33..46d2a2f 100644 --- a/yt_idv/tests/test_yt_idv.py +++ b/yt_idv/tests/test_yt_idv.py @@ -6,7 +6,7 @@ import pytest import yt import yt.testing -from pytest_html import extras +from pytest_html import extras as html_extras import yt_idv from yt_idv import shader_objects @@ -39,13 +39,13 @@ def osmesa_empty(): @pytest.fixture() -def image_store(request, extra, tmpdir): +def image_store(request, extras, tmpdir): def _snap_image(rc): image = rc.run() img = yt.write_bitmap(image, None) content = base64.b64encode(img).decode("ascii") - extra.append(extras.png(content)) - extra.append(extras.html("
")) + extras.append(html_extras.png(content)) + extras.append(html_extras.html("
")) return _snap_image