tmux-amq/tests/test_message_limits.py

10 lines
207 B
Python
Raw Normal View History

import pytest
from tamq.store import Store
def test_message_body_limit(tmp_path):
store = Store(tmp_path / "queue.sqlite3")
with pytest.raises(ValueError):
store.add("a", "b", "x" * 8193)