@@ -723,8 +723,10 @@ async def test_query_channels_members_in(
723723
724724 async def test_create_blocklist (self , client : StreamChatAsync ):
725725 blocklist_name = f"TestBlocklistAsync_{ uuid .uuid4 ().hex [:8 ]} "
726- await client .create_blocklist (name = blocklist_name , words = ["fudge" , "heck" ], type = "word" )
727-
726+ await client .create_blocklist (
727+ name = blocklist_name , words = ["fudge" , "heck" ], type = "word"
728+ )
729+
728730 # Clean up after test
729731 try :
730732 await client .delete_blocklist (blocklist_name )
@@ -734,16 +736,20 @@ async def test_create_blocklist(self, client: StreamChatAsync):
734736 async def test_list_blocklists (self , client : StreamChatAsync ):
735737 # First, clean up any existing test blocklists
736738 await cleanup_blocklists_async (client )
737-
739+
738740 # Create a test blocklist
739741 blocklist_name = f"TestBlocklistAsync_{ uuid .uuid4 ().hex [:8 ]} "
740- await client .create_blocklist (name = blocklist_name , words = ["fudge" , "heck" ], type = "word" )
741-
742+ await client .create_blocklist (
743+ name = blocklist_name , words = ["fudge" , "heck" ], type = "word"
744+ )
745+
742746 try :
743747 response = await client .list_blocklists ()
744748 # Should have at least 1 blocklist (the one we just created)
745749 assert len (response ["blocklists" ]) >= 1
746- blocklist_names = {blocklist ["name" ] for blocklist in response ["blocklists" ]}
750+ blocklist_names = {
751+ blocklist ["name" ] for blocklist in response ["blocklists" ]
752+ }
747753 assert blocklist_name in blocklist_names
748754 finally :
749755 # Clean up
@@ -754,8 +760,10 @@ async def test_list_blocklists(self, client: StreamChatAsync):
754760
755761 async def test_get_blocklist (self , client : StreamChatAsync ):
756762 blocklist_name = f"TestBlocklistAsync_{ uuid .uuid4 ().hex [:8 ]} "
757- await client .create_blocklist (name = blocklist_name , words = ["fudge" , "heck" ], type = "word" )
758-
763+ await client .create_blocklist (
764+ name = blocklist_name , words = ["fudge" , "heck" ], type = "word"
765+ )
766+
759767 try :
760768 response = await client .get_blocklist (blocklist_name )
761769 assert response ["blocklist" ]["name" ] == blocklist_name
@@ -769,8 +777,10 @@ async def test_get_blocklist(self, client: StreamChatAsync):
769777
770778 async def test_update_blocklist (self , client : StreamChatAsync ):
771779 blocklist_name = f"TestBlocklistAsync_{ uuid .uuid4 ().hex [:8 ]} "
772- await client .create_blocklist (name = blocklist_name , words = ["fudge" , "heck" ], type = "word" )
773-
780+ await client .create_blocklist (
781+ name = blocklist_name , words = ["fudge" , "heck" ], type = "word"
782+ )
783+
774784 try :
775785 await client .update_blocklist (blocklist_name , words = ["dang" ])
776786 response = await client .get_blocklist (blocklist_name )
@@ -784,9 +794,11 @@ async def test_update_blocklist(self, client: StreamChatAsync):
784794
785795 async def test_delete_blocklist (self , client : StreamChatAsync ):
786796 blocklist_name = f"TestBlocklistAsync_{ uuid .uuid4 ().hex [:8 ]} "
787- await client .create_blocklist (name = blocklist_name , words = ["fudge" , "heck" ], type = "word" )
797+ await client .create_blocklist (
798+ name = blocklist_name , words = ["fudge" , "heck" ], type = "word"
799+ )
788800 await client .delete_blocklist (blocklist_name )
789-
801+
790802 # Verify it's deleted
791803 try :
792804 await client .get_blocklist (blocklist_name )
0 commit comments