phase 4
This commit is contained in:
@@ -5,8 +5,8 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from detect.profiles.base import FrameExtractionConfig
|
||||
from detect.stages.frame_extractor import extract_frames
|
||||
from core.detect.stages.models import FrameExtractionConfig
|
||||
from core.detect.stages.frame_extractor import extract_frames
|
||||
|
||||
SAMPLE_DIR = Path("media/out/chunks/95043d50-4df6-4ac8-bbd5-2ba873117c6e")
|
||||
|
||||
@@ -61,7 +61,7 @@ def test_extract_frames_with_events(monkeypatch):
|
||||
def mock_push(job_id, event_type, data):
|
||||
events.append((job_id, event_type, data))
|
||||
|
||||
monkeypatch.setattr("detect.emit.push_detect_event", mock_push)
|
||||
monkeypatch.setattr("core.detect.emit.push_detect_event", mock_push)
|
||||
|
||||
video = _get_sample_video()
|
||||
config = FrameExtractionConfig(fps=1, max_frames=5)
|
||||
|
||||
Reference in New Issue
Block a user