Skip to content

Commit 122a7c0

Browse files
authored
✅ Reenable mesh tests (#4173)
1 parent d139331 commit 122a7c0

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

tests/mesh/test_meshing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616

1717
class TestMeshing:
18-
@pytest.mark.xfail
1918
@pytest.mark.parametrize(("lcar", "nodes_num"), [(0.1, 40), (0.25, 16), (0.5, 8)])
2019
def test_mesh_poly(self, lcar, nodes_num, tmp_path):
2120
poly = tools.make_polygon(
@@ -44,7 +43,6 @@ def test_mesh_poly(self, lcar, nodes_num, tmp_path):
4443
arr = boundaries.values
4544
assert (arr == labels["poly"]).sum() == nodes_num
4645

47-
@pytest.mark.xfail
4846
@pytest.mark.parametrize(("lcar", "nodes_num"), [(0.1, 40), (0.25, 16), (0.5, 8)])
4947
def test_override_lcar_surf(self, lcar, nodes_num, tmp_path):
5048
poly = tools.make_polygon(

tests/mesh/test_tools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
class TestMSHtoXDMF:
20-
@pytest.mark.xfail
2120
@pytest.mark.parametrize("dimensions", [2, (0, 1)])
2221
def test_conversion_from_msh_to_xdm_new(self, dimensions):
2322
"""
@@ -36,7 +35,6 @@ def test_conversion_from_msh_to_xdm_new(self, dimensions):
3635
filecmp.cmp(generated, reference)
3736
generated.unlink()
3837

39-
@pytest.mark.xfail
4038
@pytest.mark.parametrize(
4139
"dimensions",
4240
[
@@ -58,7 +56,6 @@ def test_nofile(self):
5856
with pytest.raises(MeshConversionError):
5957
msh_to_xdmf("not_here.msh", dimensions=(0, 1), directory=DATA_PATH)
6058

61-
@pytest.mark.xfail
6259
def test_nofile_import(self):
63-
with pytest.raises(MeshConversionError):
60+
with pytest.raises(FileNotFoundError):
6461
import_mesh("not_here.msh", directory=DATA_PATH)

0 commit comments

Comments
 (0)