File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -313,15 +313,15 @@ def test_drop_database_fails(self):
313
313
with self .assertRaises (InfluxDBClientError ) as ctx :
314
314
self .cli .drop_database ('db' )
315
315
self .assertEqual (500 , ctx .exception .code )
316
- self .assertEqual ('{"results":[{"error":"database not found"}]} ' ,
317
- ctx .exception .content )
316
+ self .assertIn ('{"results":[{"error":"database not found: db ' ,
317
+ ctx .exception .content )
318
318
319
319
def test_query_fail (self ):
320
320
with self .assertRaises (InfluxDBClientError ) as ctx :
321
321
self .cli .query ('select column_one from foo' )
322
- self .assertEqual (
323
- ( '500: {"results":[{"error":"database not found: db"}]}' ,) ,
324
- ctx .exception .args )
322
+ self .assertEqual (500 , ctx . exception . code )
323
+ self . assertIn ( ' {"results":[{"error":"database not found: db' ,
324
+ ctx .exception .content )
325
325
326
326
############################################################################
327
327
You can’t perform that action at this time.
0 commit comments