From 8118190af4a1c828690b9af624c245d350cf6f43 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 18 Oct 2019 15:26:48 +0200 Subject: [PATCH] allow small deviations in quality class --- tests/pytest/test_tutorials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pytest/test_tutorials.py b/tests/pytest/test_tutorials.py index 32d53d50..169a8856 100644 --- a/tests/pytest/test_tutorials.py +++ b/tests/pytest/test_tutorials.py @@ -28,7 +28,7 @@ def checkData(mesh, mp, ref): assert ref['ne1d'] == data['ne1d'] assert ref['ne2d'] == data['ne2d'] assert ref['ne3d'] == data['ne3d'] - assert ref['quality_histogram'] == data['quality_histogram'] + assert json.loads(ref['quality_histogram']) == pytest.approx(json.loads(data['quality_histogram']), abs=1, rel=0.4) assert ref['total_badness'] == pytest.approx(data['total_badness'], rel=1e-5) # get tutorials