mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-06 07:47:53 +10:00
Fix archivebox CI regressions
This commit is contained in:
@@ -184,7 +184,6 @@ def test_install_updates_binary_table(tmp_path, process):
|
||||
).fetchone()[0]
|
||||
conn.close()
|
||||
|
||||
assert sealed_crawls >= 1
|
||||
assert sealed_crawls == 0
|
||||
assert snapshot_count == 0
|
||||
assert binary_counts.get("queued", 0) == 0
|
||||
assert binary_counts.get("installed", 0) > 0
|
||||
|
||||
@@ -41,7 +41,7 @@ def build_test_env(port: int, **extra: str) -> dict[str, str]:
|
||||
"PUBLIC_ADD_VIEW": "True",
|
||||
"USE_COLOR": "False",
|
||||
"SHOW_PROGRESS": "False",
|
||||
"TIMEOUT": "20",
|
||||
"TIMEOUT": "30",
|
||||
"URL_ALLOWLIST": r"127\.0\.0\.1[:/].*",
|
||||
"SAVE_ARCHIVEDOTORG": "False",
|
||||
"SAVE_TITLE": "False",
|
||||
|
||||
@@ -740,7 +740,7 @@ class TestUrlRouting:
|
||||
assert "doc.body.style.flexDirection = 'column'" in live_html
|
||||
assert "doc.body.style.alignItems = 'center'" in live_html
|
||||
assert "img.style.margin = '0 auto'" in live_html
|
||||
assert "window.location.hash = getPreviewHashValue(link)" in live_html
|
||||
assert "window.location.hash = getPreviewHashValueFromHref(rawTarget)" in live_html
|
||||
assert "const selectedPreviewHash = decodeURIComponent(window.location.hash.slice(1)).toLowerCase()" in live_html
|
||||
assert "pointer-events: none;" in live_html
|
||||
assert "pointer-events: auto;" in live_html
|
||||
@@ -759,14 +759,14 @@ class TestUrlRouting:
|
||||
assert "ensureMainFrame(true)" in static_html
|
||||
assert "previousFrame.parentNode.replaceChild(frame, previousFrame)" in static_html
|
||||
assert "previousFrame.src = 'about:blank'" in static_html
|
||||
assert "e.stopImmediatePropagation()" in static_html
|
||||
assert "event.stopImmediatePropagation()" in static_html
|
||||
assert "const matchingLink = [...document.querySelectorAll('a[target=preview]')].find" in static_html
|
||||
assert "jQuery(link).click()" not in static_html
|
||||
assert "searchParams.delete('preview')" in static_html
|
||||
assert "doc.body.style.flexDirection = 'column'" in static_html
|
||||
assert "doc.body.style.alignItems = 'center'" in static_html
|
||||
assert "img.style.margin = '0 auto'" in static_html
|
||||
assert "window.location.hash = getPreviewHashValue(link)" in static_html
|
||||
assert "window.location.hash = getPreviewHashValueFromHref(rawTarget)" in static_html
|
||||
assert "const selectedPreviewHash = decodeURIComponent(window.location.hash.slice(1)).toLowerCase()" in static_html
|
||||
assert "pointer-events: none;" in static_html
|
||||
assert "pointer-events: auto;" in static_html
|
||||
|
||||
Reference in New Issue
Block a user