44 generate_prediction ,
55 get_prediction_dates ,
66 get_prediction_values_and_dates ,
7+ get_dose_recommendations ,
78 get_glucose_effect_velocity ,
89 get_glucose_effect_velocity_dates ,
910 get_glucose_velocity_values_and_dates ,
@@ -21,7 +22,7 @@ def get_generate_prediction_input():
2122 return json .load (f )
2223
2324
24- def get_loop_aglgorithm_input ():
25+ def get_loop_algorithm_input ():
2526 with open ('python_tests/test_files/loop_algorithm_input.json' , 'r' ) as f :
2627 return json .load (f )
2728
@@ -59,6 +60,12 @@ def test_get_prediction_values_and_dates():
5960 assert all (isinstance (date , str ) for date in dates ), "All prediction dates should be strings."
6061
6162
63+ def test_get_dose_recommendations ():
64+ loop_algorithm_input = get_loop_algorithm_input ()
65+ dose_recommendations = get_dose_recommendations (loop_algorithm_input )
66+ assert isinstance (dose_recommendations , dict ) # Replace with the expected type or value
67+
68+
6269def test_get_glucose_effect_velocity ():
6370 prediction_input = get_generate_prediction_input ()
6471 glucose_effect_velocity = get_glucose_effect_velocity (prediction_input )
@@ -83,13 +90,13 @@ def test_get_glucose_effect_velocity_values_and_dates():
8390
8491
8592def test_get_active_carbs ():
86- loop_algorithm_input = get_loop_aglgorithm_input ()
93+ loop_algorithm_input = get_loop_algorithm_input ()
8794 active_carbs = get_active_carbs (loop_algorithm_input )
8895 assert isinstance (active_carbs , float ) # Replace with the expected type or value
8996
9097
9198def test_get_active_insulin ():
92- loop_algorithm_input = get_loop_aglgorithm_input ()
99+ loop_algorithm_input = get_loop_algorithm_input ()
93100 active_insulin = get_active_insulin (loop_algorithm_input )
94101 assert isinstance (active_insulin , float ) # Replace with the expected type or value
95102
0 commit comments