solidprivacy-nl commited on
Commit
798fa5e
·
1 Parent(s): 3c2ee8d

Refine PDF text reinsert UI guard test

Browse files
tests/test_pdf_text_reinsert_ui_patch.py CHANGED
@@ -105,19 +105,22 @@ def test_dockerfile_runs_pdf_text_reinsert_patch_after_existing_patch():
105
  assert "python fix_streamlit_nested_expanders.py && python fix_streamlit_pdf_text_reinsert.py" in DOCKERFILE_TEXT
106
 
107
 
 
 
 
 
 
108
  def test_no_restored_pdf_ocr_cloud_ai_or_rehydration_behavior_added():
109
  lower_patch = PATCH_TEXT.lower()
110
  forbidden_markers = [
111
  "download herstelde pdf",
112
  "download_pdf_reinserted",
113
- "pdf-to-docx",
114
  "pdf_to_docx",
115
  "pytesseract",
116
  "ocr_used = true",
117
  "requests.post",
118
  "httpx.post",
119
  "cloud processing call",
120
- "ai-based extraction",
121
  "restore_original_document",
122
  "automatic pdf rehydration",
123
  "server-side key storage",
 
105
  assert "python fix_streamlit_nested_expanders.py && python fix_streamlit_pdf_text_reinsert.py" in DOCKERFILE_TEXT
106
 
107
 
108
+ def test_dockerfile_installs_runtime_pdf_parser_for_approved_ui_path():
109
+ assert "pypdf" in DOCKERFILE_TEXT
110
+ assert "poetry install --no-root" in DOCKERFILE_TEXT
111
+
112
+
113
  def test_no_restored_pdf_ocr_cloud_ai_or_rehydration_behavior_added():
114
  lower_patch = PATCH_TEXT.lower()
115
  forbidden_markers = [
116
  "download herstelde pdf",
117
  "download_pdf_reinserted",
 
118
  "pdf_to_docx",
119
  "pytesseract",
120
  "ocr_used = true",
121
  "requests.post",
122
  "httpx.post",
123
  "cloud processing call",
 
124
  "restore_original_document",
125
  "automatic pdf rehydration",
126
  "server-side key storage",