Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
This commit is contained in:
parent
788eb8e2ed
commit
92881b6b56
35 changed files with 1206 additions and 806 deletions
|
|
@ -41,7 +41,7 @@ def test_store_migrates_legacy_endpoint_rows_to_manual_delivery(tmp_path):
|
|||
assert store.endpoints()[0]["delivery_mode"] == "manual"
|
||||
assert store.db.execute(
|
||||
"SELECT value FROM metadata WHERE key='schema_version'"
|
||||
).fetchone()[0] == "3"
|
||||
).fetchone()[0] == "4"
|
||||
assert "displayed_at" in {
|
||||
row["name"] for row in store.db.execute("PRAGMA table_info(messages)")
|
||||
}
|
||||
|
|
@ -59,15 +59,3 @@ def test_mark_displayed_releases_lease_without_acknowledging(tmp_path):
|
|||
assert row["displayed_at"] is not None
|
||||
assert store.db.execute("SELECT COUNT(*) FROM leases").fetchone()[0] == 0
|
||||
store.close()
|
||||
|
||||
|
||||
def test_latest_counterparty_uses_latest_inbound_message_regardless_of_state(tmp_path):
|
||||
store = Store(tmp_path / "queue.sqlite3")
|
||||
store.add("audit-core", "audit-core", "self note")
|
||||
older = store.add("flex-auth", "audit-core", "first")
|
||||
store.acknowledge(older)
|
||||
store.add("railiance-platform", "audit-core", "latest")
|
||||
|
||||
assert store.latest_counterparty("audit-core") == "railiance-platform"
|
||||
assert store.latest_counterparty("unknown") is None
|
||||
store.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue