Skip to content

Commit 2272fc0

Browse files
committed
Use https sentinel URL in iOS executor test to clear Sonar S5332
1 parent 5cfec3c commit 2272fc0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/unit_test/headless/test_ios_xcuitest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,13 @@ def fake_tap(x, y, *, device):
179179

180180
monkeypatch.setattr("je_auto_control.ios.tap", fake_tap)
181181
from je_auto_control.utils.executor.action_executor import _ac_ios_tap
182-
result = _ac_ios_tap(x=11, y=22, url="http://example:8100")
182+
# URL string is opaque here — never dialed; only round-tripped through
183+
# IOSDevice.url. Use https:// so Sonar's S5332 stays quiet.
184+
sentinel_url = "https://example:8100"
185+
result = _ac_ios_tap(x=11, y=22, url=sentinel_url)
183186
assert result == {"x": 11, "y": 22}
184187
assert seen["coords"] == (11, 22)
185-
assert seen["device"].url == "http://example:8100"
188+
assert seen["device"].url == sentinel_url
186189

187190

188191
# === optional-dep + import probe ============================================

0 commit comments

Comments
 (0)