From 5a0978824f1e46a4fb2667dc68663bfe4bf8506e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 19 Jan 2025 21:20:28 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_graphical_units/test_threed.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tests/test_graphical_units/test_threed.py b/tests/test_graphical_units/test_threed.py index 27b066cb83..33812d1120 100644 --- a/tests/test_graphical_units/test_threed.py +++ b/tests/test_graphical_units/test_threed.py @@ -166,12 +166,12 @@ def param_surface(u, v): def test_get_start_and_end_Arrow3d(): start, end = ORIGIN, np.array([2, 1, 0], dtype=np.float64) arrow = Arrow3D(start, end) - assert np.allclose( - arrow.get_start(), start, atol=0.01 - ), "start points of Arrow3D do not match" - assert np.allclose( - arrow.get_end(), end, atol=0.01 - ), "end points of Arrow3D do not match" + assert np.allclose(arrow.get_start(), start, atol=0.01), ( + "start points of Arrow3D do not match" + ) + assert np.allclose(arrow.get_end(), end, atol=0.01), ( + "end points of Arrow3D do not match" + ) def test_type_conversion_in_Line3D(): @@ -188,11 +188,10 @@ def test_type_conversion_in_Arrow3D(): type_table = [type(item) for item in [*line.get_start(), *line.get_end()]] bool_table = [t == np.float64 for t in type_table] assert all(bool_table), "Types of start and end points are not np.float64" - + assert np.allclose(arrow.get_start(), start, atol=0.01), ( "start points of Arrow3D do not match" ) assert np.allclose(arrow.get_end(), end, atol=0.01), ( "end points of Arrow3D do not match" ) -