Skip to content

Commit a1666ed

Browse files
committed
update the module references for testing
1 parent d2116b2 commit a1666ed

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/vendors/test_medtronic.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
from unittest import TestCase
22
from mock import Mock
33

4-
#from openaps.vendors.medtronic import read_bg_targets_mg_dl as read_bg_targets
5-
from openaps.vendors.units import bg_targets as read_bg_targets
4+
from openaps.vendors.units import bg_targets
65

76

87
class BgTargetsTestCase(TestCase):
9-
"""Test openaps.vendor.medtronic read_bg_targets"""
8+
"""Test openaps.vendor.units bg_targets"""
109

1110
def mg_dl_pump_response(self):
1211
return {'units': 'mg/dL', 'targets': [
@@ -24,7 +23,7 @@ class MockParent():
2423
device = 'irrelevant'
2524

2625
def test_read_bg_targets_from_mg_dl_pump(self):
27-
instance = read_bg_targets(None, BgTargetsTestCase.MockParent())
26+
instance = bg_targets(None, BgTargetsTestCase.MockParent())
2827

2928
instance.units = 'mg/dL'
3029
instance.to_unit = instance.CONVERTERS[instance.units]
@@ -39,7 +38,7 @@ def test_read_bg_targets_from_mg_dl_pump(self):
3938
self.assertEqual(response, expected_response)
4039

4140
def test_read_bg_targets_from_mmol_l_pump(self):
42-
instance = read_bg_targets(None, BgTargetsTestCase.MockParent())
41+
instance = bg_targets(None, BgTargetsTestCase.MockParent())
4342

4443
instance.units = 'mg/dL'
4544
instance.to_unit = instance.CONVERTERS[instance.units]

0 commit comments

Comments
 (0)