Skip to content

Commit

Permalink
Update fixture descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
lochhh committed Jan 30, 2025
1 parent 3d66ac2 commit da6a2d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Fixtures and configurations applied to the entire test suite."""
"""Fixtures and configurations shared by the entire test suite."""

import logging
from glob import glob
Expand Down
16 changes: 10 additions & 6 deletions tests/fixtures/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,25 +305,29 @@ def valid_dlc_poses_df():
# -------------------- Invalid bboxes datasets --------------------
@pytest.fixture
def missing_var_bboxes_dataset(valid_bboxes_dataset):
"""Return a bboxes dataset missing position variable."""
"""Return a bboxes dataset missing the required position variable."""
return valid_bboxes_dataset.drop_vars("position")


@pytest.fixture
def missing_two_vars_bboxes_dataset(valid_bboxes_dataset):
"""Return a bboxes dataset missing position and shape variables."""
"""Return a bboxes dataset missing the required position
and shape variables.
"""
return valid_bboxes_dataset.drop_vars(["position", "shape"])


@pytest.fixture
def missing_dim_bboxes_dataset(valid_bboxes_dataset):
"""Return a bboxes dataset missing the time dimension."""
"""Return a bboxes dataset missing the required time dimension."""
return valid_bboxes_dataset.rename({"time": "tame"})


@pytest.fixture
def missing_two_dims_bboxes_dataset(valid_bboxes_dataset):
"""Return a bboxes dataset missing the time and space dimensions."""
"""Return a bboxes dataset missing the required time
and space dimensions.
"""
return valid_bboxes_dataset.rename({"time": "tame", "space": "spice"})


Expand All @@ -342,11 +346,11 @@ def empty_dataset():

@pytest.fixture
def missing_var_poses_dataset(valid_poses_dataset):
"""Return a poses dataset missing position variable."""
"""Return a poses dataset missing the required position variable."""
return valid_poses_dataset.drop_vars("position")


@pytest.fixture
def missing_dim_poses_dataset(valid_poses_dataset):
"""Return a poses dataset missing the time dimension."""
"""Return a poses dataset missing the required time dimension."""
return valid_poses_dataset.rename({"time": "tame"})

0 comments on commit da6a2d5

Please sign in to comment.