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"