@@ -321,27 +321,26 @@ def test_prepare_evo_wash_parameters_checking(self):
321321 )
322322
323323 # test waste_vol argument check
324- with pytest .raises (ValueError , match = "waste_vol has to be a float " ):
324+ with pytest .raises (ValueError , match = "waste_vol .*? float or int from 0 - 100. " ):
325325 prepare_evo_wash_parameters (
326326 tips = [1 , 2 ],
327327 waste_location = (52 , 2 ),
328328 cleaner_location = (52 , 1 ),
329329 waste_vol = - 1.0 ,
330330 )
331- with pytest .raises (ValueError , match = "waste_vol has to be a float " ):
331+ with pytest .raises (ValueError , match = "waste_vol .*? float or int from 0 - 100. " ):
332332 prepare_evo_wash_parameters (
333333 tips = [1 , 2 ],
334334 waste_location = (52 , 2 ),
335335 cleaner_location = (52 , 1 ),
336336 waste_vol = 101.0 ,
337337 )
338- with pytest .raises (ValueError , match = "waste_vol has to be a float" ):
339- prepare_evo_wash_parameters (
340- tips = [1 , 2 ],
341- waste_location = (52 , 2 ),
342- cleaner_location = (52 , 1 ),
343- waste_vol = 1 ,
344- )
338+ prepare_evo_wash_parameters (
339+ tips = [1 , 2 ],
340+ waste_location = (52 , 2 ),
341+ cleaner_location = (52 , 1 ),
342+ waste_vol = 1 ,
343+ )
345344
346345 # test waste_delay argument check
347346 with pytest .raises (ValueError , match = "waste_delay has to be an int" ):
@@ -367,27 +366,26 @@ def test_prepare_evo_wash_parameters_checking(self):
367366 )
368367
369368 # test cleaner_vol argument check
370- with pytest .raises (ValueError , match = "cleaner_vol has to be a float " ):
369+ with pytest .raises (ValueError , match = "cleaner_vol .*? float or int from 0 - 100. " ):
371370 prepare_evo_wash_parameters (
372371 tips = [1 , 2 ],
373372 waste_location = (52 , 2 ),
374373 cleaner_location = (52 , 1 ),
375374 cleaner_vol = - 1.0 ,
376375 )
377- with pytest .raises (ValueError , match = "cleaner_vol has to be a float " ):
376+ with pytest .raises (ValueError , match = "cleaner_vol .*? float or int from 0 - 100. " ):
378377 prepare_evo_wash_parameters (
379378 tips = [1 , 2 ],
380379 waste_location = (52 , 2 ),
381380 cleaner_location = (52 , 1 ),
382381 cleaner_vol = 101.0 ,
383382 )
384- with pytest .raises (ValueError , match = "cleaner_vol has to be a float" ):
385- prepare_evo_wash_parameters (
386- tips = [1 , 2 ],
387- waste_location = (52 , 2 ),
388- cleaner_location = (52 , 1 ),
389- cleaner_vol = 1 ,
390- )
383+ prepare_evo_wash_parameters (
384+ tips = [1 , 2 ],
385+ waste_location = (52 , 2 ),
386+ cleaner_location = (52 , 1 ),
387+ cleaner_vol = 1 ,
388+ )
391389
392390 # test cleaner_delay argument check
393391 with pytest .raises (ValueError , match = "cleaner_delay has to be an int" ):
0 commit comments