Lass E-Mails ueber die Faecher finden und halte Kapitel sowie das Menue in der Akte an ihrem Ort.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3465ed57f6
commit
67d48378c9
11 files changed
+696
-160
No files matched your search
@@ -396,6 +396,21 @@ def test_teilvorgang_keeps_its_parent_in_the_trail(client, db):
|
||||
assert rows["Prüfung"]["kind_label"] == "Teilvorgang"
|
||||
assert rows["Prüfung"]["parent_title"] == "Hauptvorgang"
|
||||
assert rows["Hauptvorgang"]["kind_label"] == "Vorgang"
|
||||
chapter = ada.request(
|
||||
"POST",
|
||||
f"/api/v1/matters/{child['id']}/chapters?context_kind=case&context_id={case['id']}",
|
||||
json={"title": "Schriftverkehr"},
|
||||
status=201,
|
||||
)
|
||||
_note(ada, "Einwendung", child, document_on="2024-05-02")
|
||||
case_view = ada.request("GET", f"/api/v1/cases/{case['id']}")
|
||||
assert [item["title"] for item in case_view["matters"]] == ["Hauptvorgang"]
|
||||
assert case_view["matters"][0]["children"][0]["title"] == "Prüfung"
|
||||
contained = {item["title"]: item for item in case_view["contained"]}
|
||||
assert contained["Prüfung"]["kind_label"] == "Teilvorgang"
|
||||
assert contained["Prüfung"]["parent_title"] == "Hauptvorgang"
|
||||
assert contained["Prüfung"]["chapters"][0]["id"] == chapter["id"]
|
||||
assert contained["Prüfung"]["bindings"][0]["element"]["title"] == "Einwendung"
|
||||
|
||||
|
||||
_PNG = bytes.fromhex(
|
||||
|
||||
Reference in new issue
Block a user