Skip to content

Commit

Permalink
Merge pull request #4942 from neutrinoceros/tst/require_h5
Browse files Browse the repository at this point in the history
TST: add missing `@requires_module` decorators in particle deposition tests
  • Loading branch information
chrishavlin authored Jul 9, 2024
2 parents c0c0bbb + c86e78b commit 2b68a48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yt/geometry/tests/test_particle_deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import yt
from yt.loaders import load
from yt.testing import fake_random_ds, requires_file
from yt.testing import fake_random_ds, requires_file, requires_module
from yt.utilities.exceptions import YTBoundsDefinitionError


Expand Down Expand Up @@ -34,6 +34,7 @@ def test_one_zone_octree_deposit():
assert sp["deposit", "io_cic"].shape == (1,)


@requires_module("h5py")
@requires_file(RAMSES)
@requires_file(ISOGAL)
def test_mesh_sampling():
Expand All @@ -52,6 +53,7 @@ def test_mesh_sampling():
assert_array_less(-dist, dx)


@requires_module("h5py")
@requires_file(RAMSES)
@requires_file(ISOGAL)
def test_mesh_sampling_for_filtered_particles():
Expand Down

0 comments on commit 2b68a48

Please sign in to comment.