Files
LandPPT/tests/test_file_processor_validate_file.py
sligter 6153e56441 feat: modularize services and expand platform workflows
Add OAuth, community, credits, startup, export, and narration workflows while splitting oversized route and PPT service modules into dedicated components with broader regression coverage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 21:04:37 +08:00

11 lines
300 B
Python

from landppt.services import file_processor as mod
def test_validate_file_accepts_pdf_when_supported(monkeypatch):
monkeypatch.setattr(mod, "PDF_AVAILABLE", True, raising=True)
fp = mod.FileProcessor()
ok, msg = fp.validate_file("demo.pdf", file_size=1024)
assert ok is True, msg