Save local modifications for syncing
Some checks failed
CI / lint (push) Has been cancelled
CI / unit tests (push) Has been cancelled
CI / integration tests (push) Has been cancelled
CI / package build (push) Has been cancelled
Commit lint / pull request title (push) Has been cancelled
Commit lint / commit messages (push) Has been cancelled

This commit is contained in:
2026-06-10 10:05:52 +08:00
parent 9fc6ad20d2
commit 0910affc78
13 changed files with 738 additions and 24 deletions

View File

@ -21,7 +21,10 @@ def test_derive_text_renders_parsed_nontext_as_tag() -> None:
]
text, non_text = derive_text(items)
assert "[IMAGE: p.png]\nOCR TEXT" in text
assert "[IMAGE: p.png]" in text
assert "image visual facts" in text
assert "not assistant actions" in text
assert text.index("image visual facts") < text.index("OCR TEXT")
assert text.startswith("before")
assert text.endswith("after")
assert non_text == 0