mirror of
https://github.com/sligter/LandPPT.git
synced 2026-08-28 23:31:06 +08:00
6153e56441
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>
11 lines
300 B
Python
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
|
|
|