Some checks failed
tamq-ci / test (push) Failing after 36s
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a02f34-ead4-7a60-85cd-d7f08e22fa0e
9 lines
301 B
Python
9 lines
301 B
Python
from tamq.store import Store
|
|
|
|
|
|
def test_acknowledge_message(tmp_path):
|
|
store = Store(tmp_path / "queue.sqlite3")
|
|
message_id = store.add("a", "b", "body")
|
|
assert store.acknowledge(message_id)
|
|
assert store.list()[0]["state"] == "acknowledged"
|
|
assert not store.acknowledge("missing")
|