mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-06 23:12:22 +02:00
13 lines
427 B
Python
13 lines
427 B
Python
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
def test_pdf_backed_documents_do_not_offer_destructive_html_pdf_export():
|
|
source = (ROOT / "static/js/document.js").read_text(encoding="utf-8")
|
|
|
|
assert "if (!isForm) {" in source
|
|
assert "label: _isDocxLang(lang) ? 'Convert to PDF' : 'Print as PDF'" in source
|
|
assert "destroy the original page layout, images, and form structure" in source
|