tmux-amq/tests/test_policy_ack.py

8 lines
268 B
Python
Raw Normal View History

from tamq.policy import load_profile
def test_ack_mode_profile(tmp_path):
path = tmp_path / "config.toml"
path.write_text("[policy.profiles.safe]\ndelivery_ack_mode='acknowledged'\n")
assert load_profile(path, "safe").delivery_ack_mode == "acknowledged"