Skip to content

Commit

Permalink
Merge pull request #162 from chrishavlin/extras_deprecation_warning
Browse files Browse the repository at this point in the history
fix extras deprecation warning
  • Loading branch information
matthewturk authored Dec 9, 2024
2 parents dea0f45 + 30339ed commit e59ce2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yt_idv/tests/test_yt_idv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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("<br clear='all'/>"))
extras.append(html_extras.png(content))
extras.append(html_extras.html("<br clear='all'/>"))

return _snap_image

Expand Down

0 comments on commit e59ce2a

Please sign in to comment.