Skip to content

Commit 80b822b

Browse files
committed
Fixing test after api update
1 parent e3ddf89 commit 80b822b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

python_tests/tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
import pandas as pd
23
from loop_to_python_api.api import (
34
initialize_exception_handlers,
45
generate_prediction,
@@ -7,7 +8,7 @@
78
get_dose_recommendations,
89
get_glucose_effect_velocity,
910
get_glucose_effect_velocity_dates,
10-
get_glucose_velocity_values_and_dates,
11+
get_glucose_effect_velocity_and_dates,
1112
get_active_carbs,
1213
get_active_insulin,
1314
percent_absorption_at_percent_time,
@@ -79,14 +80,13 @@ def test_get_glucose_effect_velocity_dates():
7980

8081

8182
def test_get_glucose_effect_velocity_values_and_dates():
82-
prediction_input = get_generate_prediction_input()
83-
values, dates = get_glucose_velocity_values_and_dates(prediction_input)
83+
loop_algorithm_input = get_loop_algorithm_input()
84+
values, dates = get_glucose_effect_velocity_and_dates(loop_algorithm_input)
8485

8586
# Assertions to check the types
8687
assert isinstance(values, list), "The prediction values should be a list."
8788
assert isinstance(dates, list), "The prediction dates should be a list."
8889
assert all(isinstance(value, (int, float)) for value in values), "All prediction values should be integers or floats."
89-
assert all(isinstance(date, str) for date in dates), "All prediction dates should be strings."
9090

9191

9292
def test_get_active_carbs():

0 commit comments

Comments
 (0)