feat: release 1.4.0 with isolated upgrades and device discovery
This commit is contained in:
1 parent
a6a3ee2eb0
commit
df66897ff4
41 files changed
+1564
-126
No files matched your search
@@ -26,6 +26,20 @@ import pytest
|
||||
from artemis.drivers.mock.mock_driver import MockDeviceDriver
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def no_host_adb_discovery(monkeypatch, request):
|
||||
"""Deterministic tests must never connect to host emulators or remembered phones."""
|
||||
from artemis.runtime.adb_discovery import adb_device_discovery
|
||||
|
||||
if any(
|
||||
request.node.get_closest_marker(name)
|
||||
for name in ("android", "integration", "e2e", "manual")
|
||||
):
|
||||
return
|
||||
monkeypatch.setattr(adb_device_discovery, "refresh", lambda *args, **kwargs: [])
|
||||
monkeypatch.setattr(adb_device_discovery, "remember", lambda *args: True)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_driver():
|
||||
"""Provide an isolated mock mobile driver."""
|
||||
|
||||
Reference in new issue
Block a user