vomebook commited on
Commit ·
c6b5347
1
Parent(s): 32e3f00
Update hosted Reader selections and OCR boundary fixtures
Browse files
tests/backend/test_coverage_safety.py
CHANGED
|
@@ -1053,7 +1053,7 @@ class LifespanAndCdnTests(unittest.IsolatedAsyncioTestCase):
|
|
| 1053 |
upstream_semaphore=asyncio.Semaphore(1))
|
| 1054 |
with patch.object(app, "app", SimpleNamespace(state=state)):
|
| 1055 |
response = await app.api_reader_source_revision(source)
|
| 1056 |
-
self.assertEqual(response.status_code,
|
| 1057 |
self.assertTrue(upstream.released)
|
| 1058 |
state.http_session.head.side_effect = OSError("offline")
|
| 1059 |
response = await app.api_reader_source_revision(source)
|
|
|
|
| 1053 |
upstream_semaphore=asyncio.Semaphore(1))
|
| 1054 |
with patch.object(app, "app", SimpleNamespace(state=state)):
|
| 1055 |
response = await app.api_reader_source_revision(source)
|
| 1056 |
+
self.assertEqual(response.status_code, 503)
|
| 1057 |
self.assertTrue(upstream.released)
|
| 1058 |
state.http_session.head.side_effect = OSError("offline")
|
| 1059 |
response = await app.api_reader_source_revision(source)
|
tests/reader/pdf-search/test_pdf_book_worker_browser.py
CHANGED
|
@@ -957,7 +957,7 @@ class PdfBookWorkerBrowserTests(unittest.TestCase):
|
|
| 957 |
let highlights=[];
|
| 958 |
const context={readerAbortController:{signal:{aborted:false}},searchState:{query:''},
|
| 959 |
pdfSearchText,pdfSourceOffset,normalizePdfSearchText,fullSearchEscape:x=>x,
|
| 960 |
-
highlightTextParts:parts=>highlights.push(parts.map(p=>p.node.data.slice(p.start,p.end)))};
|
| 961 |
const search=createReaderPdfTextRuntime(context);
|
| 962 |
try {
|
| 963 |
for(const text of ['手',' ', '机','', '😀','nee','dle',' ','手','\n','机']) {
|
|
|
|
| 957 |
let highlights=[];
|
| 958 |
const context={readerAbortController:{signal:{aborted:false}},searchState:{query:''},
|
| 959 |
pdfSearchText,pdfSourceOffset,normalizePdfSearchText,fullSearchEscape:x=>x,
|
| 960 |
+
highlightTextParts:parts=>{highlights.push(parts.map(p=>p.node.data.slice(p.start,p.end))); return [];}};
|
| 961 |
const search=createReaderPdfTextRuntime(context);
|
| 962 |
try {
|
| 963 |
for(const text of ['手',' ', '机','', '😀','nee','dle',' ','手','\n','机']) {
|
tests/support/reader_test_selection.py
CHANGED
|
@@ -24,7 +24,7 @@ CATEGORY_METHODS = {
|
|
| 24 |
"test_unsupported_format_hides_inapplicable_controls",
|
| 25 |
"test_txt_displays_before_stream_finishes",
|
| 26 |
"test_text_reader_uses_scroll_mode_without_pagination_controls",
|
| 27 |
-
"
|
| 28 |
"test_scanned_pdf_bookmark_has_empty_excerpt",
|
| 29 |
"test_txt_detects_legacy_encodings_and_multibyte_sample_boundary",
|
| 30 |
"test_markdown_extension_aliases_render_content",
|
|
|
|
| 24 |
"test_unsupported_format_hides_inapplicable_controls",
|
| 25 |
"test_txt_displays_before_stream_finishes",
|
| 26 |
"test_text_reader_uses_scroll_mode_without_pagination_controls",
|
| 27 |
+
"test_reading_tab_remains_available_for_document_without_toc",
|
| 28 |
"test_scanned_pdf_bookmark_has_empty_excerpt",
|
| 29 |
"test_txt_detects_legacy_encodings_and_multibyte_sample_boundary",
|
| 30 |
"test_markdown_extension_aliases_render_content",
|