Skip to content

Commit 9a1ce6b

Browse files
committed
pre-commit run -a
1 parent fdeaecc commit 9a1ce6b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/datasets/test_datasets.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ def test_frames_in_current_file_calculation(tmp_path, empty_lerobot_dataset_fact
12981298

12991299
def test_encode_video_worker_forwards_vcodec(tmp_path):
13001300
"""Test that _encode_video_worker correctly forwards the vcodec parameter to encode_video_frames."""
1301-
from unittest.mock import MagicMock, patch
1301+
from unittest.mock import patch
13021302

13031303
from lerobot.datasets.utils import DEFAULT_IMAGE_PATH
13041304

@@ -1307,7 +1307,9 @@ def test_encode_video_worker_forwards_vcodec(tmp_path):
13071307
episode_index = 0
13081308
frame_index = 0
13091309

1310-
fpath = DEFAULT_IMAGE_PATH.format(image_key=video_key, episode_index=episode_index, frame_index=frame_index)
1310+
fpath = DEFAULT_IMAGE_PATH.format(
1311+
image_key=video_key, episode_index=episode_index, frame_index=frame_index
1312+
)
13111313
img_dir = tmp_path / Path(fpath).parent
13121314
img_dir.mkdir(parents=True, exist_ok=True)
13131315

@@ -1343,7 +1345,9 @@ def test_encode_video_worker_default_vcodec(tmp_path):
13431345
episode_index = 0
13441346
frame_index = 0
13451347

1346-
fpath = DEFAULT_IMAGE_PATH.format(image_key=video_key, episode_index=episode_index, frame_index=frame_index)
1348+
fpath = DEFAULT_IMAGE_PATH.format(
1349+
image_key=video_key, episode_index=episode_index, frame_index=frame_index
1350+
)
13471351
img_dir = tmp_path / Path(fpath).parent
13481352
img_dir.mkdir(parents=True, exist_ok=True)
13491353

0 commit comments

Comments
 (0)