diff --git a/tests/test_client.py b/tests/test_client.py index 55ceeb0b..7c3b0d08 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -300,10 +300,12 @@ def test_agent_tags(client: Letta, clear_tables): # Test getting all tags all_tags = client.tags.list() + # Filter out dynamic favorite:user tags since they contain user-specific UUIDs + all_tags_filtered = [tag for tag in all_tags if not tag.startswith("favorite:user:")] expected_tags = ["agent1", "agent2", "agent3", "development", "origin:letta-chat", "production", "test", "view:letta-chat"] print("ALL TAGS", all_tags) print("EXPECTED TAGS", expected_tags) - assert sorted(all_tags) == expected_tags + assert sorted(all_tags_filtered) == expected_tags # Test pagination paginated_tags = client.tags.list(limit=2)