Scope Indicator WiFi assertion to its connection helper
This commit is contained in:
1 parent
21ab0b9d40
commit
0d0a0f187e
1 file changed
+3
-2
@@ -7,6 +7,8 @@ import subprocess
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
from cpp_source import body
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
BUILD = ROOT / "build_legacy.sh"
|
||||
@@ -213,8 +215,7 @@ int main() {
|
||||
self.assertIn("noteCompanionWiFiDisplayState(state)", page)
|
||||
|
||||
main = (ROOT / "examples/companion_radio/main.cpp").read_text()
|
||||
helper = main[main.index("bool isCompanionWiFiConnected()"):
|
||||
main.index("bool toggleCompanionWiFi()")]
|
||||
helper = body(main, "bool isCompanionWiFiConnected()")
|
||||
self.assertNotIn("!companion_wifi_active", helper)
|
||||
self.assertIn("esp_wifi_sta_get_ap_info", helper)
|
||||
|
||||
|
||||
Reference in new issue
Block a user