.
This commit is contained in:
@@ -1086,7 +1086,7 @@ def test_reconcile_keeps_live_call_active_when_ami_still_sees_channels(monkeypat
|
||||
assert link.telephony_status == "connected"
|
||||
assert link.ended_at is None
|
||||
assert link.channel_name == "PJSIP/2001-00009999"
|
||||
assert emitted == []
|
||||
assert [item for item in emitted if item["call_id"] == call_id] == []
|
||||
finally:
|
||||
session.close()
|
||||
|
||||
@@ -1145,7 +1145,7 @@ def test_reconcile_skips_synthetic_end_when_channel_lookup_is_unavailable(monkey
|
||||
assert link.status == "active"
|
||||
assert link.telephony_status == "connected"
|
||||
assert link.ended_at is None
|
||||
assert emitted == []
|
||||
assert [item for item in emitted if item["call_id"] == call_id] == []
|
||||
finally:
|
||||
session.close()
|
||||
|
||||
@@ -1302,7 +1302,7 @@ def test_reconcile_keeps_recent_active_ai_call_open(monkeypatch, tmp_path):
|
||||
assert link.status == "active"
|
||||
assert link.telephony_status == "connected"
|
||||
assert link.ended_at is None
|
||||
assert emitted == []
|
||||
assert [item for item in emitted if item["call_id"] == call_id] == []
|
||||
finally:
|
||||
session.close()
|
||||
|
||||
@@ -1371,7 +1371,7 @@ def test_reconcile_closes_active_call_without_duplicate_end_event(monkeypatch, t
|
||||
assert link.status == "ended"
|
||||
assert link.telephony_status == "ended"
|
||||
assert link.ended_at is not None
|
||||
assert emitted == []
|
||||
assert [item for item in emitted if item["call_id"] == call_id] == []
|
||||
finally:
|
||||
session.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user