12
12
13
13
VCGENCMD = "/usr/bin/vcgencmd get_throttled"
14
14
15
- OPEN_SIGNATURE = "io .open"
15
+ OPEN_SIGNATURE = "builtins .open"
16
16
17
17
18
18
class PiSupportTestCase (unittest .TestCase ):
@@ -25,7 +25,7 @@ def test_get_octopi_version(self):
25
25
m .return_value .readline .return_value = OCTOPI_VERSION
26
26
version = get_octopi_version ()
27
27
28
- m .assert_called_once_with ("/etc/octopi_version" , "rt" , encoding = "utf-8" )
28
+ m .assert_called_once_with ("/etc/octopi_version" , encoding = "utf-8" )
29
29
self .assertEqual (version , OCTOPI_VERSION )
30
30
31
31
def test_get_octopiuptodate_build (self ):
@@ -35,7 +35,7 @@ def test_get_octopiuptodate_build(self):
35
35
m .return_value .readline .return_value = OCTOPI_UPTODATE_BUILD
36
36
build = get_octopiuptodate_build ()
37
37
38
- m .assert_called_once_with ("/etc/octopiuptodate_build" , "rt" , encoding = "utf-8" )
38
+ m .assert_called_once_with ("/etc/octopiuptodate_build" , encoding = "utf-8" )
39
39
self .assertEqual (build , OCTOPI_UPTODATE_BUILD )
40
40
41
41
def test_get_proc_dt_model (self ):
@@ -45,7 +45,7 @@ def test_get_proc_dt_model(self):
45
45
m .return_value .readline .return_value = DT_MODEL
46
46
model = get_proc_dt_model ()
47
47
48
- m .assert_called_once_with ("/proc/device-tree/model" , "rt" , encoding = "utf-8" )
48
+ m .assert_called_once_with ("/proc/device-tree/model" , encoding = "utf-8" )
49
49
self .assertEqual (model , DT_MODEL )
50
50
51
51
def test_get_vcgencmd_throttle_state (self ):
0 commit comments