Skip to content

Commit 5a09788

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bbd97cc commit 5a09788

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tests/test_graphical_units/test_threed.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ def param_surface(u, v):
166166
def test_get_start_and_end_Arrow3d():
167167
start, end = ORIGIN, np.array([2, 1, 0], dtype=np.float64)
168168
arrow = Arrow3D(start, end)
169-
assert np.allclose(
170-
arrow.get_start(), start, atol=0.01
171-
), "start points of Arrow3D do not match"
172-
assert np.allclose(
173-
arrow.get_end(), end, atol=0.01
174-
), "end points of Arrow3D do not match"
169+
assert np.allclose(arrow.get_start(), start, atol=0.01), (
170+
"start points of Arrow3D do not match"
171+
)
172+
assert np.allclose(arrow.get_end(), end, atol=0.01), (
173+
"end points of Arrow3D do not match"
174+
)
175175

176176

177177
def test_type_conversion_in_Line3D():
@@ -188,11 +188,10 @@ def test_type_conversion_in_Arrow3D():
188188
type_table = [type(item) for item in [*line.get_start(), *line.get_end()]]
189189
bool_table = [t == np.float64 for t in type_table]
190190
assert all(bool_table), "Types of start and end points are not np.float64"
191-
191+
192192
assert np.allclose(arrow.get_start(), start, atol=0.01), (
193193
"start points of Arrow3D do not match"
194194
)
195195
assert np.allclose(arrow.get_end(), end, atol=0.01), (
196196
"end points of Arrow3D do not match"
197197
)
198-

0 commit comments

Comments
 (0)