diff --git a/tests/compas/files/test_gltf.py b/tests/compas/files/test_gltf.py index 4e680ad30255..d888d94fef79 100644 --- a/tests/compas/files/test_gltf.py +++ b/tests/compas/files/test_gltf.py @@ -5,6 +5,7 @@ from compas.files import GLTFContent from compas.tolerance import TOL +# Temporary change the global precision in the TOL class to 12 TOL.precision = 12 BASE_FOLDER = os.path.dirname(__file__) @@ -175,3 +176,7 @@ def test_gltf_content(): assert len(node_0.children) == 0 assert len(content.nodes) == 1 assert len(scene.nodes) == 1 + + +# Reset the precision to its default value +TOL.precision = 3 diff --git a/tests/compas/files/test_stl.py b/tests/compas/files/test_stl.py index 5f0aa4b5a3c7..db6eea6e9aee 100644 --- a/tests/compas/files/test_stl.py +++ b/tests/compas/files/test_stl.py @@ -5,6 +5,7 @@ from compas.files import STL from compas.tolerance import TOL +# Temporary change the global precision in the TOL class to 12 TOL.precision = 12 BASE_FOLDER = os.path.dirname(__file__) @@ -43,3 +44,7 @@ def test_binary_read_write_fidelity(): mesh_2 = Mesh.from_stl(fp) assert mesh.adjacency == mesh_2.adjacency assert mesh.vertex == mesh_2.vertex + + +# Reset the precision to its default value +TOL.precision = 3