Skip to content

Commit ca69edc

Browse files
hifaizskclaude
andcommitted
test: remove delete retention policy test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9f868f3 commit ca69edc

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

tests/test_chat_misc.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -618,25 +618,6 @@ def test_get_retention_policy(client: Stream):
618618
pass
619619

620620

621-
def test_delete_retention_policy(client: Stream):
622-
"""Create and delete a retention policy, verify it is removed."""
623-
try:
624-
client.chat.set_retention_policy(policy="old-messages", max_age_hours=240)
625-
626-
response = client.chat.delete_retention_policy(policy="old-messages")
627-
assert response.data.duration is not None
628-
629-
# Verify the policy was removed
630-
get_response = client.chat.get_retention_policy()
631-
policies = [p.policy for p in get_response.data.policies]
632-
assert "old-messages" not in policies
633-
finally:
634-
try:
635-
client.chat.delete_retention_policy(policy="old-messages")
636-
except Exception:
637-
pass
638-
639-
640621
def test_get_retention_policy_runs(client: Stream):
641622
"""Query retention policy run history."""
642623
try:

0 commit comments

Comments
 (0)