🚑 ISO invisible dans le conteneur: detectee au scan (plus de confiance aveugle a l'extension) et refusee a la conversion avec message explicite de montage
This commit is contained in:
1 parent
280102952b
commit
1df4daaae5
7 files changed
+71
-8
No files matched your search
+7
-1
@@ -6,6 +6,7 @@ from httpx import Response
|
||||
|
||||
from app import auth as auth_module
|
||||
from app.conf_store import config_path
|
||||
from app.config import settings
|
||||
from app.database import SessionLocal
|
||||
from app.main import app
|
||||
from app.models import User
|
||||
@@ -123,6 +124,11 @@ def test_qbittorrent_status_lifecycle() -> None:
|
||||
|
||||
@respx.mock
|
||||
def test_scan_only_imports_iso_files() -> None:
|
||||
# L'ISO doit exister reellement: un chemin invisible du conteneur est
|
||||
# ecarte (montage mal regle).
|
||||
iso_file = settings.films_dir / "ISO Movie (2025)" / "ISO Movie (2025).iso"
|
||||
iso_file.parent.mkdir(parents=True, exist_ok=True)
|
||||
iso_file.write_bytes(b"\x00CD001 fake image")
|
||||
respx.get("http://radarr:7878/api/v3/movie?includeMovieFile=true").mock(
|
||||
return_value=Response(
|
||||
200,
|
||||
@@ -131,7 +137,7 @@ def test_scan_only_imports_iso_files() -> None:
|
||||
"id": 10,
|
||||
"title": "ISO Movie",
|
||||
"year": 2025,
|
||||
"path": "/movies/ISO Movie (2025)",
|
||||
"path": str(settings.radarr_films_dir / "ISO Movie (2025)"),
|
||||
"movieFile": {
|
||||
"id": 20,
|
||||
"relativePath": "ISO Movie (2025).iso",
|
||||
|
||||
Reference in new issue
Block a user