Passe Export-Tests an TOC-Anker und nummerierte Pfade an.
Links in der Übersicht dürfen Fragment-Anker nutzen; Pfadassertions und Versionsstände folgen der einheitlichen Nummerierung und der Auswahl nur exportierbarer Blattknoten. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
59434a4045
commit
60a76803e1
2 files changed
+26
-8
No files matched your search
@@ -384,7 +384,9 @@ def test_dispatch_keeps_the_secured_stand_and_distinct_mail_parts(client, db, mo
|
||||
selected = [node["id"] for node in nodes if node["kind"] in {"dispatch_item", "evidence"}]
|
||||
archive = _zip(ada, matter["id"], selected)
|
||||
names = archive.namelist()
|
||||
snapshot = next(name for name in names if name.endswith("/01 Anschreiben/Anlagen/Lageplan.pdf"))
|
||||
snapshot = next(
|
||||
name for name in names if "Anschreiben" in name and name.endswith("/Anlagen/Lageplan.pdf")
|
||||
)
|
||||
assert archive.read(snapshot) == PDF_B
|
||||
eml_name = next(name for name in names if name.endswith("nachricht.eml"))
|
||||
assert b"Fachlicher Zusatz" in archive.read(eml_name)
|
||||
@@ -517,7 +519,9 @@ def test_dispatch_keeps_the_secured_stand_and_distinct_mail_parts(client, db, mo
|
||||
assert gaps
|
||||
assert all("Später geänderter Text" not in full.read(name).decode("utf-8") for name in gaps)
|
||||
assert all(b"%PDF" not in full.read(name) for name in gaps)
|
||||
secured = next(name for name in full.namelist() if name.endswith("/01 Anschreiben/Anlagen/Lageplan.pdf"))
|
||||
secured = next(
|
||||
name for name in full.namelist() if "Anschreiben" in name and name.endswith("/Anlagen/Lageplan.pdf")
|
||||
)
|
||||
assert full.read(secured) == PDF_B
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user