From af2539ff867040977ac88d3e011cdfe7c149e467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20C=2E=20Riven=C3=A6s?= Date: Thu, 4 Feb 2021 12:10:05 +0100 Subject: [PATCH] TST: add assertions for a few tests --- tests/test_grid3d/test_grid.py | 2 +- tests/test_grid3d/test_grid_property.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_grid3d/test_grid.py b/tests/test_grid3d/test_grid.py index 95d3ff139..f2237673c 100644 --- a/tests/test_grid3d/test_grid.py +++ b/tests/test_grid3d/test_grid.py @@ -386,7 +386,7 @@ def test_roffbin_export_v2_banal6(): @tsetup.bigtest -def test_roffbin_bigbox(tmpdir): +def test_roffbin_bigbox(): """Test roff binary for bigbox, to monitor performance.""" bigbox = TMPDIR / "bigbox.roff" if not bigbox.is_file(): diff --git a/tests/test_grid3d/test_grid_property.py b/tests/test_grid3d/test_grid_property.py index 635ee5ab5..f0067b779 100644 --- a/tests/test_grid3d/test_grid_property.py +++ b/tests/test_grid3d/test_grid_property.py @@ -76,11 +76,11 @@ def test_banal7(xtgshow): assert grd.dimensions == (4, 2, 3) disc = GridProperty(BANAL7, name="DISC") assert disc.dimensions == (4, 2, 3) - print(disc.values) + assert disc.values.mean() == pytest.approx(0.59091, abs=0.001) gprops = grd.get_gridquality_properties() mix = gprops.get_prop_by_name("minangle_sides") - print(mix.values) + assert mix.values.mean() == pytest.approx(81.31036, abs=0.001) if xtgshow: lay = 2