You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Fix test_battery_voltage.py by fixing mocking
This commit is contained in:
@@ -94,7 +94,8 @@ def read_raw_adc(force_refresh=False):
|
||||
WifiService = None
|
||||
if needs_wifi_disable:
|
||||
try:
|
||||
from mpos import WifiService
|
||||
# Needs actual path, not "from mpos" shorthand because it's mocked by test_battery_voltage.py
|
||||
from mpos.net.wifi_service import WifiService
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user