Fix #173 - Require gym-pusht to be installed for test_examples_3_and_2 (#174)

这个提交包含在:
Simon Alibert
2024-05-12 08:08:59 +02:00
提交者 GitHub
父节点 ced3de4c94
当前提交 29a196c5dd
共有 3 个文件被更改,包括 53 次插入 和 1 次删除

查看文件

@ -3,6 +3,8 @@ import subprocess
import sys
from pathlib import Path
from tests.utils import require_package
def _find_and_replace(text: str, finds_and_replaces: list[tuple[str, str]]) -> str:
for f, r in finds_and_replaces:
@ -21,6 +23,7 @@ def test_example_1():
assert Path("outputs/examples/1_load_lerobot_dataset/episode_0.mp4").exists()
@require_package("gym_pusht")
def test_examples_3_and_2():
"""
Train a model with example 3, check the outputs.