@@ -122,80 +122,3 @@ def test_close_when_connection_closed(
122122 mock_sea_client .close_command .assert_not_called ()
123123 assert result_set .has_been_closed_server_side is True
124124 assert result_set .status == CommandState .CLOSED
125-
126- def test_unimplemented_methods (
127- self , mock_connection , mock_sea_client , execute_response
128- ):
129- """Test that unimplemented methods raise NotImplementedError."""
130- result_set = SeaResultSet (
131- connection = mock_connection ,
132- execute_response = execute_response ,
133- sea_client = mock_sea_client ,
134- buffer_size_bytes = 1000 ,
135- arraysize = 100 ,
136- )
137-
138- # Test each unimplemented method individually with specific error messages
139- with pytest .raises (
140- NotImplementedError , match = "fetchone is not implemented for SEA backend"
141- ):
142- result_set .fetchone ()
143-
144- with pytest .raises (
145- NotImplementedError , match = "fetchmany is not implemented for SEA backend"
146- ):
147- result_set .fetchmany (10 )
148-
149- with pytest .raises (
150- NotImplementedError , match = "fetchmany is not implemented for SEA backend"
151- ):
152- # Test with default parameter value
153- result_set .fetchmany ()
154-
155- with pytest .raises (
156- NotImplementedError , match = "fetchall is not implemented for SEA backend"
157- ):
158- result_set .fetchall ()
159-
160- with pytest .raises (
161- NotImplementedError ,
162- match = "fetchmany_arrow is not implemented for SEA backend" ,
163- ):
164- result_set .fetchmany_arrow (10 )
165-
166- with pytest .raises (
167- NotImplementedError ,
168- match = "fetchall_arrow is not implemented for SEA backend" ,
169- ):
170- result_set .fetchall_arrow ()
171-
172- with pytest .raises (
173- NotImplementedError , match = "fetchone is not implemented for SEA backend"
174- ):
175- # Test iteration protocol (calls fetchone internally)
176- next (iter (result_set ))
177-
178- with pytest .raises (
179- NotImplementedError , match = "fetchone is not implemented for SEA backend"
180- ):
181- # Test using the result set in a for loop
182- for row in result_set :
183- pass
184-
185- def test_fill_results_buffer_not_implemented (
186- self , mock_connection , mock_sea_client , execute_response
187- ):
188- """Test that _fill_results_buffer raises NotImplementedError."""
189- result_set = SeaResultSet (
190- connection = mock_connection ,
191- execute_response = execute_response ,
192- sea_client = mock_sea_client ,
193- buffer_size_bytes = 1000 ,
194- arraysize = 100 ,
195- )
196-
197- with pytest .raises (
198- NotImplementedError ,
199- match = "_fill_results_buffer is not implemented for SEA backend" ,
200- ):
201- result_set ._fill_results_buffer ()
0 commit comments