44 initialize_exception_handlers ,
55 generate_prediction ,
66 get_prediction_dates ,
7+ get_prediction_values_and_dates ,
78 get_glucose_effect_velocity ,
89 get_glucose_effect_velocity_dates ,
10+ get_glucose_velocity_values_and_dates ,
911 get_active_carbs ,
1012 get_active_insulin ,
1113 percent_absorption_at_percent_time ,
@@ -47,6 +49,17 @@ def test_get_prediction_dates():
4749 assert isinstance (prediction_dates , list ) # Replace with the expected type or value
4850
4951
52+ def test_get_prediction_values_and_dates ():
53+ prediction_input = get_generate_prediction_input ()
54+ values , dates = get_prediction_values_and_dates (prediction_input )
55+
56+ # Assertions to check the types
57+ assert isinstance (values , list ), "The prediction values should be a list."
58+ assert isinstance (dates , list ), "The prediction dates should be a list."
59+ assert all (isinstance (value , (int , float )) for value in values ), "All prediction values should be integers or floats."
60+ assert all (isinstance (date , str ) for date in dates ), "All prediction dates should be strings."
61+
62+
5063def test_get_glucose_effect_velocity ():
5164 prediction_input = get_generate_prediction_input ()
5265 glucose_effect_velocity = get_glucose_effect_velocity (prediction_input )
@@ -59,6 +72,17 @@ def test_get_glucose_effect_velocity_dates():
5972 assert isinstance (glucose_effect_velocity_dates , list ) # Replace with the expected type or value
6073
6174
75+ def test_get_glucose_effect_velocity_values_and_dates ():
76+ prediction_input = get_generate_prediction_input ()
77+ values , dates = get_glucose_velocity_values_and_dates (prediction_input )
78+
79+ # Assertions to check the types
80+ assert isinstance (values , list ), "The prediction values should be a list."
81+ assert isinstance (dates , list ), "The prediction dates should be a list."
82+ assert all (isinstance (value , (int , float )) for value in values ), "All prediction values should be integers or floats."
83+ assert all (isinstance (date , str ) for date in dates ), "All prediction dates should be strings."
84+
85+
6286def test_get_active_carbs ():
6387 loop_algorithm_input = get_loop_aglgorithm_input ()
6488 active_carbs = get_active_carbs (loop_algorithm_input )
0 commit comments