File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
640621def test_get_retention_policy_runs (client : Stream ):
641622 """Query retention policy run history."""
642623 try :
You can’t perform that action at this time.
0 commit comments