@@ -10,7 +10,7 @@ class TestWebClientTableBlock(unittest.TestCase):
1010
1111 def setUp (self ):
1212 self .client = WebClient (token = "xoxb-test-token" , base_url = "http://localhost:8888" )
13-
13+
1414 # Create a sample table block
1515 self .table = TableBlock (
1616 rows = [
@@ -95,7 +95,7 @@ def test_table_with_raw_text_object_helper(self, mock_api_call):
9595 json_data = call_args [1 ]["json" ]
9696 attachments = json_data ["attachments" ]
9797 table_dict = attachments [0 ]["blocks" ][0 ]
98-
98+
9999 self .assertEqual (table_dict ["type" ], "table" )
100100 self .assertEqual (table_dict ["rows" ][0 ][0 ]["type" ], "raw_text" )
101101 self .assertEqual (table_dict ["rows" ][0 ][0 ]["text" ], "Name" )
@@ -108,12 +108,12 @@ def test_table_to_dict_serialization(self):
108108 self .assertEqual (table_dict ["type" ], "table" )
109109 self .assertIn ("rows" , table_dict )
110110 self .assertIn ("column_settings" , table_dict )
111-
111+
112112 # Verify rows structure
113113 self .assertEqual (len (table_dict ["rows" ]), 3 )
114114 self .assertEqual (table_dict ["rows" ][0 ][0 ]["type" ], "raw_text" )
115115 self .assertEqual (table_dict ["rows" ][0 ][0 ]["text" ], "Product" )
116-
116+
117117 # Verify column settings
118118 self .assertEqual (len (table_dict ["column_settings" ]), 2 )
119119 self .assertEqual (table_dict ["column_settings" ][0 ]["is_wrapped" ], True )
@@ -124,9 +124,7 @@ def test_multiple_tables_not_allowed(self, mock_api_call):
124124 """Test that only one table per message is allowed (per Slack documentation)"""
125125 mock_api_call .return_value = {"ok" : True , "channel" : "C123" , "ts" : "1234567890.123456" }
126126
127- table2 = TableBlock (
128- rows = [[{"type" : "raw_text" , "text" : "Another table" }]]
129- )
127+ table2 = TableBlock (rows = [[{"type" : "raw_text" , "text" : "Another table" }]])
130128
131129 # According to docs, this should only send one table
132130 # The SDK doesn't enforce this, but Slack API will return error
@@ -167,7 +165,7 @@ def test_table_with_rich_text_cells(self):
167165 )
168166
169167 table_dict = table_with_rich_text .to_dict ()
170-
168+
171169 # Verify mixed cell types
172170 self .assertEqual (table_dict ["rows" ][0 ][0 ]["type" ], "raw_text" )
173171 self .assertEqual (table_dict ["rows" ][1 ][1 ]["type" ], "rich_text" )
0 commit comments