Skip to content

Commit

Permalink
use image_store fixture in spherical tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Dec 10, 2024
1 parent ee73f3c commit eed51a6
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions yt_idv/tests/test_spherical_vol_rendering.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

import numpy as np
import pytest
import yt
Expand Down Expand Up @@ -33,12 +31,5 @@ def osmesa_fake_spherical():
rc.osmesa.OSMesaDestroyContext(rc.context)


def test_spherical(osmesa_fake_spherical, tmp_path):
# just checking that it runs here
image = osmesa_fake_spherical.run()

outdir = tmp_path / "snapshots"
outdir.mkdir()
fn = str(outdir / "testout.png")
_ = yt.write_bitmap(image, fn)
assert os.path.exists(fn)
def test_spherical(osmesa_fake_spherical, image_store):
image_store(osmesa_fake_spherical)

0 comments on commit eed51a6

Please sign in to comment.