fix: integrate deployed reports with PPI KaKs handoff
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def _block(source: str, start: str, end: str) -> str:
|
||||
begin = source.index(start)
|
||||
finish = source.index(end, begin)
|
||||
return source[begin:finish]
|
||||
|
||||
|
||||
def test_multilingual_frontend_keeps_critical_ppi_kaks_state_chain_in_sync() -> None:
|
||||
canonical = (ROOT / "apps/web/vue3/index.html").read_text(encoding="utf-8")
|
||||
multilingual = (ROOT / "apps/web/vue3/index_ml.html").read_text(encoding="utf-8")
|
||||
boundaries = (
|
||||
(
|
||||
"const resumePpiKaksPausedStages = async",
|
||||
"const downloadRecommendedPpiReferenceBundle = async",
|
||||
),
|
||||
(
|
||||
"const monitorPpiReferenceBundleDownload =",
|
||||
"const ppiHasNearReferenceBeforeArabidopsis =",
|
||||
),
|
||||
(
|
||||
"const ensurePpiKaksDependencyOwner = async",
|
||||
"const submitExecuteRequestWithAutoAnnotation = async",
|
||||
),
|
||||
(
|
||||
"const kaksReferenceChoiceParams =",
|
||||
"const confirmedStageParamsForExecution =",
|
||||
),
|
||||
)
|
||||
|
||||
for start, end in boundaries:
|
||||
assert _block(multilingual, start, end) == _block(canonical, start, end)
|
||||
Reference in New Issue
Block a user