From 5d74e5b4f2682dafb9d37a083c84b36af9d269d8 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Wed, 29 Jan 2020 15:23:12 +0100 Subject: [PATCH] Fix tests in error if launched from GUI --- tests/attractor.py | 2 +- tests/attractor_edge_on_border.py | 2 +- tests/attractor_point_outside_face.py | 2 +- tests/quadrangles.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/attractor.py b/tests/attractor.py index 7873746..da0e62b 100644 --- a/tests/attractor.py +++ b/tests/attractor.py @@ -91,4 +91,4 @@ assert min_area_with_attractor < min_area_without_attractor assert min_area_with_attractor < 1 if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(True) + salome.sg.updateObjBrowser() diff --git a/tests/attractor_edge_on_border.py b/tests/attractor_edge_on_border.py index da679b8..0de8960 100644 --- a/tests/attractor_edge_on_border.py +++ b/tests/attractor_edge_on_border.py @@ -99,4 +99,4 @@ assert min_area_with_attractor < min_area_without_attractor assert min_area_with_attractor < 1 if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(True) + salome.sg.updateObjBrowser() diff --git a/tests/attractor_point_outside_face.py b/tests/attractor_point_outside_face.py index f42e5a3..20337fa 100644 --- a/tests/attractor_point_outside_face.py +++ b/tests/attractor_point_outside_face.py @@ -125,4 +125,4 @@ assert min_area_with_attractor < min_area_without_attractor assert min_area_with_attractor < 1 if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(True) + salome.sg.updateObjBrowser() diff --git a/tests/quadrangles.py b/tests/quadrangles.py index 9854f21..bd63771 100644 --- a/tests/quadrangles.py +++ b/tests/quadrangles.py @@ -101,4 +101,4 @@ assert Mesh_1.NbTriangles() > 0 assert Mesh_1.NbQuadrangles() > Mesh_1.NbTriangles() if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(True) + salome.sg.updateObjBrowser() -- 2.39.2