Skip to content

Commit

Permalink
more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yck011522 committed Apr 24, 2024
1 parent 60ca15e commit 3b63c5e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/compas/geometry/test_curves_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ def test_line_create_from_point_direction_length(point, direction, length):
line = Line.from_point_direction_length(point, direction, length)

assert line.start == point
assert line.end == add_vectors(
point, scale_vector(normalize_vector(direction), length))
assert line.end == add_vectors(point, scale_vector(normalize_vector(direction), length))


# =============================================================================
Expand Down Expand Up @@ -230,7 +229,8 @@ def test_line_accessors(p1, p2):
],
)
@pytest.mark.parametrize(
"distance", [0, 1, 4, -9, 3.3, 0.00001, -0.00001],
"distance",
[0, 1, 4, -9, 3.3, 0.00001, -0.00001],
)
def test_line_point_from_start(p1, p2, distance):
line = Line(p1, p2)
Expand All @@ -254,7 +254,8 @@ def test_line_point_from_start(p1, p2, distance):
],
)
@pytest.mark.parametrize(
"distance", [0, 1, 4, -9, 3.3, 0.00001, -0.00001],
"distance",
[0, 1, 4, -9, 3.3, 0.00001, -0.00001],
)
def test_line_point_from_end(p1, p2, distance):
line = Line(p1, p2)
Expand Down

0 comments on commit 3b63c5e

Please sign in to comment.