Commit a1666ed 1 parent d2116b2 commit a1666ed Copy full SHA for a1666ed
File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
from unittest import TestCase
2
2
from mock import Mock
3
3
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
6
5
7
6
8
7
class BgTargetsTestCase (TestCase ):
9
- """Test openaps.vendor.medtronic read_bg_targets """
8
+ """Test openaps.vendor.units bg_targets """
10
9
11
10
def mg_dl_pump_response (self ):
12
11
return {'units' : 'mg/dL' , 'targets' : [
@@ -24,7 +23,7 @@ class MockParent():
24
23
device = 'irrelevant'
25
24
26
25
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 ())
28
27
29
28
instance .units = 'mg/dL'
30
29
instance .to_unit = instance .CONVERTERS [instance .units ]
@@ -39,7 +38,7 @@ def test_read_bg_targets_from_mg_dl_pump(self):
39
38
self .assertEqual (response , expected_response )
40
39
41
40
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 ())
43
42
44
43
instance .units = 'mg/dL'
45
44
instance .to_unit = instance .CONVERTERS [instance .units ]
You can’t perform that action at this time.
0 commit comments