Skip to content

Commit

Permalink
fix setup_top_images_extractor_env
Browse files Browse the repository at this point in the history
  • Loading branch information
BKDDFS committed May 28, 2024
1 parent d25b458 commit 7bbc0ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def top_images_dir(files_dir):
return files_dir / "top_images"


@pytest.fixture(scope="function")
@pytest.fixture
def setup_top_images_extractor_env(files_dir, top_images_dir) -> tuple[Path, Path]:
assert files_dir.is_dir()

# found_files = [file for file in files_dir.iterdir() if file.suffix == ".jpg"]
# assert len(found_files) > 0, "No JPG files found in test directory"
found_files = [file for file in files_dir.iterdir() if file.suffix == ".jpg"]
assert len(found_files) > 0, "No JPG files found in test directory"

if top_images_dir.is_dir():
shutil.rmtree(top_images_dir)
Expand All @@ -35,7 +35,7 @@ def setup_top_images_extractor_env(files_dir, top_images_dir) -> tuple[Path, Pat
return files_dir, top_images_dir


@pytest.fixture(scope="function")
@pytest.fixture
def setup_best_frames_extractor_env(files_dir, best_frames_dir) -> tuple[Path, Path, Path]:
video_filename = "test_video.mp4"
expected_video_path = files_dir / f"frames_extracted_{video_filename}"
Expand Down
Empty file.
Binary file removed tests/test_files/test_video.mp4
Binary file not shown.
Empty file.

0 comments on commit 7bbc0ff

Please sign in to comment.