test: remove obsolete nonexistence checks

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-05 23:58:38 +08:00
1 parent c08172a641
commit 3495281282
24 files changed
+8 -407

No files matched your search

-9
View File
@@ -13,12 +13,3 @@ def test_gateway_restart_mode_accepts_camel_alias():
def test_gateway_restart_mode_rejects_unknown_value():
with pytest.raises(ValueError):
GatewayConfig(restart_mode="service")
def test_heartbeat_ignores_removed_retention_limit():
config = Config.model_validate(
{"gateway": {"heartbeat": {"keepRecentMessages": 8}}}
)
heartbeat = config.model_dump(by_alias=True)["gateway"]["heartbeat"]
assert "keepRecentMessages" not in heartbeat