Skip to content

Commit 467553c

Browse files
committed
fix small bug from merge from main into branch
1 parent e6c7536 commit 467553c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tests/unit/test_models.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def test_valid_ink_trajectory(
239239
assert result_start == expected_start, f"Start index mismatch for {test_id}"
240240
assert result_end == expected_end, f"End index mismatch for {test_id}"
241241

242-
242+
243243
def test_uniform_motion() -> None:
244244
"""Test with points moving at constant velocity."""
245245
points = pd.DataFrame({
@@ -251,6 +251,10 @@ def test_uniform_motion() -> None:
251251
start_label="1",
252252
end_label="2",
253253
points=points,
254+
is_error=False,
255+
line_number=1,
256+
)
257+
254258
segment.calculate_velocity_metrics(points)
255259

256260
assert segment.distance == pytest.approx(3.0)
@@ -292,7 +296,7 @@ def test_accelerating_motion() -> None:
292296

293297

294298
def test_velocity_two_points_only() -> None:
295-
"""Test velocity calculation with only two points (one velocity, no acceleration)."""
299+
"""Test velocity calculation with only two points."""
296300
points = pd.DataFrame({
297301
"x": [0, 3],
298302
"y": [0, 4],
@@ -369,4 +373,3 @@ def test_stationary_motion() -> None:
369373
assert all(v == pytest.approx(0.0) for v in segment.velocities)
370374
assert len(segment.accelerations) == 1
371375
assert segment.accelerations[0] == pytest.approx(0.0)
372-

0 commit comments

Comments
 (0)