33
44from executorlib .standalone .interactive .arguments import (
55 check_exception_was_raised ,
6+ check_list_of_futures_is_done ,
67 get_exception_lst ,
78 get_future_objects_from_input ,
89 update_futures_in_input ,
@@ -13,14 +14,16 @@ class TestSerial(unittest.TestCase):
1314 def test_get_future_objects_from_input_with_future (self ):
1415 input_args = (1 , 2 , Future (), [Future ()], {3 : Future ()})
1516 input_kwargs = {"a" : 1 , "b" : [Future ()], "c" : {"d" : Future ()}, "e" : Future ()}
16- future_lst , boolean_flag = get_future_objects_from_input (args = input_args , kwargs = input_kwargs )
17+ future_lst = get_future_objects_from_input (args = input_args , kwargs = input_kwargs )
18+ boolean_flag = check_list_of_futures_is_done (future_lst = future_lst )
1719 self .assertEqual (len (future_lst ), 6 )
1820 self .assertFalse (boolean_flag )
1921
2022 def test_get_future_objects_from_input_without_future (self ):
2123 input_args = (1 , 2 )
2224 input_kwargs = {"a" : 1 }
23- future_lst , boolean_flag = get_future_objects_from_input (args = input_args , kwargs = input_kwargs )
25+ future_lst = get_future_objects_from_input (args = input_args , kwargs = input_kwargs )
26+ boolean_flag = check_list_of_futures_is_done (future_lst = future_lst )
2427 self .assertEqual (len (future_lst ), 0 )
2528 self .assertTrue (boolean_flag )
2629
0 commit comments