Skip to content

Commit f914a10

Browse files
Fix test_battery_voltage.py by fixing mocking
1 parent 9489a5e commit f914a10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal_filesystem/lib/mpos/battery_voltage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def read_raw_adc(force_refresh=False):
9494
WifiService = None
9595
if needs_wifi_disable:
9696
try:
97-
from mpos import WifiService
97+
# Needs actual path, not "from mpos" shorthand because it's mocked by test_battery_voltage.py
98+
from mpos.net.wifi_service import WifiService
9899
except ImportError:
99100
pass
100101

0 commit comments

Comments
 (0)