1313 DuneError ,
1414 InsertTableResult ,
1515 CreateTableResult ,
16+ DeleteTableResult ,
1617)
1718from dune_client .types import QueryParameter
1819from dune_client .client import DuneClient
@@ -226,7 +227,7 @@ def test_get_latest_result_with_query_id(self):
226227 results = dune .get_latest_result (self .query .query_id ).get_rows ()
227228 self .assertGreater (len (results ), 0 )
228229
229- @unittest .skip ("This is a plus subscription endpoint ." )
230+ @unittest .skip ("Requires custom namespace and table_name input ." )
230231 def test_upload_csv_success (self ):
231232 client = DuneClient (self .valid_api_key )
232233 self .assertEqual (
@@ -238,7 +239,7 @@ def test_upload_csv_success(self):
238239 True ,
239240 )
240241
241- @unittest .skip ("This is a plus subscription endpoint ." )
242+ @unittest .skip ("Requires custom namespace and table_name input ." )
242243 def test_create_table_success (self ):
243244 # Make sure the table doesn't already exist.
244245 # You will need to change the namespace to your own.
@@ -268,7 +269,7 @@ def test_create_table_success(self):
268269 ),
269270 )
270271
271- @unittest .skip ("This is a plus subscription endpoint ." )
272+ @unittest .skip ("Requires custom namespace and table_name input ." )
272273 def test_insert_table_csv_success (self ):
273274 # Make sure the table already exists and csv matches table schema.
274275 # You will need to change the namespace to your own.
@@ -284,7 +285,7 @@ def test_insert_table_csv_success(self):
284285 InsertTableResult (rows_written = 1 ),
285286 )
286287
287- @unittest .skip ("This is a plus subscription endpoint ." )
288+ @unittest .skip ("Requires custom namespace and table_name input ." )
288289 def test_insert_table_json_success (self ):
289290 # Make sure the table already exists and json matches table schema.
290291 # You will need to change the namespace to your own.
@@ -300,6 +301,27 @@ def test_insert_table_json_success(self):
300301 InsertTableResult (rows_written = 1 ),
301302 )
302303
304+ @unittest .skip ("Requires custom namespace and table_name input." )
305+ def test_delete_table_success (self ):
306+ # Make sure the table doesn't already exist.
307+ # You will need to change the namespace to your own.
308+ client = DuneClient (self .valid_api_key )
309+
310+ namespace = "test"
311+ table_name = "dataset_e2e_test"
312+
313+ self .assertEqual (
314+ client .delete_table (
315+ namespace = namespace ,
316+ table_name = table_name ,
317+ ),
318+ DeleteTableResult .from_dict (
319+ {
320+ "message" : "Table teamwaddah.waddah_test3 successfully deleted" ,
321+ }
322+ ),
323+ )
324+
303325 def test_download_csv_with_pagination (self ):
304326 # Arrange
305327 client = DuneClient (self .valid_api_key )
0 commit comments