Skip to content

Commit 10957f9

Browse files
committed
ruff reformat
1 parent 467553c commit 10957f9

1 file changed

Lines changed: 35 additions & 25 deletions

File tree

tests/unit/test_models.py

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,13 @@ def test_valid_ink_trajectory(
242242

243243
def test_uniform_motion() -> None:
244244
"""Test with points moving at constant velocity."""
245-
points = pd.DataFrame({
246-
"x": [0, 1, 2, 3],
247-
"y": [0, 0, 0, 0],
248-
"seconds": [0, 1, 2, 3],
249-
})
245+
points = pd.DataFrame(
246+
{
247+
"x": [0, 1, 2, 3],
248+
"y": [0, 0, 0, 0],
249+
"seconds": [0, 1, 2, 3],
250+
}
251+
)
250252
segment = models.LineSegment(
251253
start_label="1",
252254
end_label="2",
@@ -268,11 +270,13 @@ def test_uniform_motion() -> None:
268270

269271
def test_accelerating_motion() -> None:
270272
"""Test with motion accelerating over time."""
271-
points = pd.DataFrame({
272-
"x": [0, 1, 4, 9],
273-
"y": [0, 0, 0, 0],
274-
"seconds": [0, 1, 2, 3],
275-
})
273+
points = pd.DataFrame(
274+
{
275+
"x": [0, 1, 4, 9],
276+
"y": [0, 0, 0, 0],
277+
"seconds": [0, 1, 2, 3],
278+
}
279+
)
276280
segment = models.LineSegment(
277281
start_label="1",
278282
end_label="2",
@@ -297,11 +301,13 @@ def test_accelerating_motion() -> None:
297301

298302
def test_velocity_two_points_only() -> None:
299303
"""Test velocity calculation with only two points."""
300-
points = pd.DataFrame({
301-
"x": [0, 3],
302-
"y": [0, 4],
303-
"seconds": [0, 2],
304-
})
304+
points = pd.DataFrame(
305+
{
306+
"x": [0, 3],
307+
"y": [0, 4],
308+
"seconds": [0, 2],
309+
}
310+
)
305311
segment = models.LineSegment(
306312
start_label="1",
307313
end_label="2",
@@ -322,11 +328,13 @@ def test_velocity_two_points_only() -> None:
322328

323329
def test_decelerating_motion() -> None:
324330
"""Test with decelerating motion (negative acceleration)."""
325-
points = pd.DataFrame({
326-
"x": [0, 4, 7, 9],
327-
"y": [0, 0, 0, 0],
328-
"seconds": [0, 1, 2, 3],
329-
})
331+
points = pd.DataFrame(
332+
{
333+
"x": [0, 4, 7, 9],
334+
"y": [0, 0, 0, 0],
335+
"seconds": [0, 1, 2, 3],
336+
}
337+
)
330338
segment = models.LineSegment(
331339
start_label="1",
332340
end_label="2",
@@ -351,11 +359,13 @@ def test_decelerating_motion() -> None:
351359

352360
def test_stationary_motion() -> None:
353361
"""Test with no movement (all points the same)."""
354-
points = pd.DataFrame({
355-
"x": [1, 1, 1],
356-
"y": [1, 1, 1],
357-
"seconds": [0, 1, 2],
358-
})
362+
points = pd.DataFrame(
363+
{
364+
"x": [1, 1, 1],
365+
"y": [1, 1, 1],
366+
"seconds": [0, 1, 2],
367+
}
368+
)
359369
segment = models.LineSegment(
360370
start_label="1",
361371
end_label="2",

0 commit comments

Comments
 (0)