From 71c2719ef0b8e2cf341d832a6fb4ddedf1a4ae85 Mon Sep 17 00:00:00 2001 From: veenstrajelmer Date: Mon, 23 Oct 2023 14:14:36 +0200 Subject: [PATCH] avoid pytest crash by preventing import of deprecated DeleteMeshOptions --- tests/dflowfm/test_net.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/dflowfm/test_net.py b/tests/dflowfm/test_net.py index d3a971f92..b05ab1141 100644 --- a/tests/dflowfm/test_net.py +++ b/tests/dflowfm/test_net.py @@ -177,12 +177,10 @@ def test_create_2d(): @pytest.mark.parametrize( "deletemeshoption,inside,nnodes,nedgenodes", [ - (DeleteMeshOption.ALL_FACE_CIRCUMCENTERS, False, 28, 90), - (DeleteMeshOption.ALL_COMPLETE_FACES, False, 23, 72), - (DeleteMeshOption.ALL_NODES, False, 23, 72), - (DeleteMeshOption.ALL_FACE_CIRCUMCENTERS, True, 23, 72), - (DeleteMeshOption.ALL_COMPLETE_FACES, True, 31, 94), - (DeleteMeshOption.ALL_NODES, True, 22, 64), + (DeleteMeshOption.INSIDE_NOT_INTERSECTED, False, 28, 90), + (DeleteMeshOption.INSIDE_AND_INTERSECTED, False, 23, 72), + (DeleteMeshOption.INSIDE_NOT_INTERSECTED, True, 23, 72), + (DeleteMeshOption.INSIDE_AND_INTERSECTED, True, 31, 94), ], ) def test_create_clip_2d(deletemeshoption, inside, nnodes, nedgenodes):