@@ -222,8 +222,11 @@ def test_empty_dataframe_warns(self):
222
222
# Check that our specific warning message is present
223
223
warning_messages = [str (w .message ) for w in warning_list ]
224
224
self .assertTrue (
225
- any ("Cannot write empty dataframe to online store" in msg for msg in warning_messages ),
226
- f"Expected warning not found. Actual warnings: { warning_messages } "
225
+ any (
226
+ "Cannot write empty dataframe to online store" in msg
227
+ for msg in warning_messages
228
+ ),
229
+ f"Expected warning not found. Actual warnings: { warning_messages } " ,
227
230
)
228
231
229
232
def test_empty_dataframe_async_warns (self ):
@@ -242,8 +245,11 @@ async def test_async_empty():
242
245
# Check that our specific warning message is present
243
246
warning_messages = [str (w .message ) for w in warning_list ]
244
247
self .assertTrue (
245
- any ("Cannot write empty dataframe to online store" in msg for msg in warning_messages ),
246
- f"Expected warning not found. Actual warnings: { warning_messages } "
248
+ any (
249
+ "Cannot write empty dataframe to online store" in msg
250
+ for msg in warning_messages
251
+ ),
252
+ f"Expected warning not found. Actual warnings: { warning_messages } " ,
247
253
)
248
254
249
255
asyncio .run (test_async_empty ())
@@ -271,8 +277,12 @@ def test_dataframe_with_empty_feature_columns_warns(self):
271
277
# Check that our specific warning message is present
272
278
warning_messages = [str (w .message ) for w in warning_list ]
273
279
self .assertTrue (
274
- any ("Cannot write dataframe with empty feature columns to online store" in msg for msg in warning_messages ),
275
- f"Expected warning not found. Actual warnings: { warning_messages } "
280
+ any (
281
+ "Cannot write dataframe with empty feature columns to online store"
282
+ in msg
283
+ for msg in warning_messages
284
+ ),
285
+ f"Expected warning not found. Actual warnings: { warning_messages } " ,
276
286
)
277
287
278
288
def test_dataframe_with_empty_feature_columns_async_warns (self ):
@@ -301,8 +311,12 @@ async def test_async_empty_features():
301
311
# Check that our specific warning message is present
302
312
warning_messages = [str (w .message ) for w in warning_list ]
303
313
self .assertTrue (
304
- any ("Cannot write dataframe with empty feature columns to online store" in msg for msg in warning_messages ),
305
- f"Expected warning not found. Actual warnings: { warning_messages } "
314
+ any (
315
+ "Cannot write dataframe with empty feature columns to online store"
316
+ in msg
317
+ for msg in warning_messages
318
+ ),
319
+ f"Expected warning not found. Actual warnings: { warning_messages } " ,
306
320
)
307
321
308
322
asyncio .run (test_async_empty_features ())
@@ -391,8 +405,11 @@ def test_empty_inputs_dict_warns(self):
391
405
# Check that our specific warning message is present
392
406
warning_messages = [str (w .message ) for w in warning_list ]
393
407
self .assertTrue (
394
- any ("Cannot write empty dataframe to online store" in msg for msg in warning_messages ),
395
- f"Expected warning not found. Actual warnings: { warning_messages } "
408
+ any (
409
+ "Cannot write empty dataframe to online store" in msg
410
+ for msg in warning_messages
411
+ ),
412
+ f"Expected warning not found. Actual warnings: { warning_messages } " ,
396
413
)
397
414
398
415
def test_inputs_dict_with_empty_features_warns (self ):
0 commit comments