Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 19, 2025
1 parent bbd97cc commit 5a09788
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tests/test_graphical_units/test_threed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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"
)

0 comments on commit 5a09788

Please sign in to comment.