-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_engine.py
More file actions
46 lines (34 loc) · 1.42 KB
/
Copy pathtest_engine.py
File metadata and controls
46 lines (34 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python3
"""Quick verification that all engine modules import correctly."""
from engine.models import ProcessingMode, ProcessingResult, AudioMetadata
print("models OK")
from engine.config import EngineConfig
print("config OK")
from engine.prompts import get_transcription_prompt, get_structuring_prompt
for mode in ProcessingMode:
p = get_structuring_prompt(mode)
assert "{transcript}" in p, f"Missing placeholder in {mode}"
print(f"prompts OK — {len(list(ProcessingMode))} modes")
from engine.audio import check_ffmpeg
print(f"audio OK — FFmpeg: {check_ffmpeg()}")
from engine.ai import GeminiClient
print("ai OK")
from engine.titlegen import parse_title_and_content, slugify, fallback_title
title, content = parse_title_and_content("TITLE: Test Title\n\n## Summary\nHello")
assert title == "Test Title", f"Got: {title}"
assert "## Summary" in content
assert slugify("Building Voice Infrastructure!") == "building-voice-infrastructure"
assert fallback_title("") == "Untitled Voice Note"
print("titlegen OK")
from engine.markdown import build_note, get_note_path
print("markdown OK")
from engine.registry import ProcessingRegistry
print("registry OK")
from engine.watcher import FolderWatcher
print("watcher OK")
from engine.core import process_audio
print("core OK")
from engine import process_audio, ProcessingMode, ProcessingResult
print("engine package OK")
print()
print("All imports verified. Engine ready.")