[30e88f42] Einfügen

Einfügen
This commit is contained in:
2026-02-22 14:31:00 +00:00
parent d8dc37fa91
commit 8e39333267
11 changed files with 290 additions and 174 deletions

View File

@@ -77,6 +77,17 @@ class MockSuperOfficeClient:
return True
return False
def create_appointment(self, subject, description, contact_id, person_id=None):
if not hasattr(self, 'appointments'):
self.appointments = []
self.appointments.append({
"Subject": subject,
"Description": description,
"ContactId": contact_id,
"PersonId": person_id
})
return True
def search(self, query):
if "contact/contactId eq" in query:
contact_id = int(query.split("eq")[1].strip())
@@ -240,6 +251,13 @@ class TestE2EFlow(unittest.TestCase):
udfs = self.mock_so_client.persons[500]["UserDefinedFields"]
self.assertEqual(udfs["SuperOffice:Subject"], "TEST SUBJECT LOGISTICS")
# Verify Appointment (Simulation)
self.assertTrue(len(self.mock_so_client.appointments) > 0)
appt = self.mock_so_client.appointments[0]
self.assertIn("✉️ Entwurf: TEST SUBJECT LOGISTICS", appt["Subject"])
self.assertIn("TEST BRIDGE LOGISTICS", appt["Description"])
print(f"[TEST] Appointment created: {appt['Subject']}")
# --- Step 3: Vertical Change in SO (To Healthcare) ---
print("[TEST] Step 3: Change Vertical in SO...")