Skip to content

Commit

Permalink
skip single test if no dagmc
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell authored Jan 9, 2025
1 parent 52e6b8a commit b2c775c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit_tests/test_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,11 @@ def test_mesh_get_homogenized_materials():
model, n_samples=1000, include_void=False)
assert m5.get_mass_density('H1') == pytest.approx(1.0)

skip_if_no_dagmc = pytest.mark.skipif(
not openmc.lib._dagmc_enabled(),
reason="DAGMC CAD geometry is not enabled.")

@skip_if_no_dagmc
def test_umesh(run_in_tmpdir, request):
"""Performs a minimal UnstructuredMesh simulation, reads in the resulting
statepoint file and writes the mesh data to vtk and hdf files. It is
Expand Down

0 comments on commit b2c775c

Please sign in to comment.