Ordne Anlagen und Belege im Übergabepaket pro Hauptschriftstück zu.
Statt gemeinsamem anlagen-arbeitsstand und Datumsordnern auf Kapitel-Ebene liegen zugeordnete Dateien unter Dokumentname/Anlagen bzw. Belege, damit mehrere Schreiben im gleichen Kapitel vollständig und eindeutig exportiert werden. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
5b23e4aab0
commit
2b23992a1a
3 files changed
+152
-7
No files matched your search
@@ -384,7 +384,7 @@ 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("/lage.pdf") and "/anlagen/" not in name)
|
||||
snapshot = next(name for name in names if name.endswith("/Anlagen/lage.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 +517,7 @@ 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("/lage.pdf") and "/anlagen/" not in name)
|
||||
secured = next(name for name in full.namelist() if name.endswith("/Anlagen/lage.pdf"))
|
||||
assert full.read(secured) == PDF_B
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user