Skip to content

Commit

Permalink
Refer to fixtures in test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
lochhh committed Jan 30, 2025
1 parent 57874bf commit 37cecae
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_unit/test_kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ class TestComputeKinematics:
"valid_dataset", ["valid_poses_dataset", "valid_bboxes_dataset"]
)
def test_kinematics(self, valid_dataset, kinematic_variable, request):
"""Test computed kinematics for a uniform linear motion case."""
"""Test computed kinematics for a uniform linear motion case.
See the ``valid_poses_dataset`` and ``valid_bboxes_dataset`` fixtures
for details.
"""
# Compute kinematic array from input dataset
position = request.getfixturevalue(valid_dataset).position
kinematic_array = getattr(kinematics, f"compute_{kinematic_variable}")(
Expand Down Expand Up @@ -96,7 +99,10 @@ def test_kinematics_with_dataset_with_nans(
helpers,
request,
):
"""Test kinematics computation for a dataset with nans."""
"""Test kinematics computation for a dataset with nans.
See the ``valid_poses_dataset_with_nan`` and
``valid_bboxes_dataset_with_nan`` fixtures for details.
"""
# compute kinematic array
valid_dataset = request.getfixturevalue(valid_dataset_with_nan)
position = valid_dataset.position
Expand Down

0 comments on commit 37cecae

Please sign in to comment.