fix: preserve exploration tool history and cap context budget
This commit is contained in:
1 parent
ee256ad7ce
commit
621f30e437
17 files changed
+211
-23
No files matched your search
@@ -46,6 +46,25 @@ def mock_driver():
|
||||
return MockDeviceDriver(device_id="fixture-mock-device", width=1080, height=2400)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def no_host_data_engine_ipc(monkeypatch, tmp_path, request):
|
||||
"""Unit-test events must not reach a user's running desktop queue.
|
||||
|
||||
The reconnect path also reads a port file, so overriding the inherited
|
||||
environment port alone does not isolate tests. IPC tests can explicitly
|
||||
override these discovery functions with their own endpoints or mocks.
|
||||
"""
|
||||
if any(
|
||||
request.node.get_closest_marker(name)
|
||||
for name in ("android", "integration", "e2e", "manual")
|
||||
):
|
||||
return
|
||||
monkeypatch.setattr("artemis.data_engine.engine.read_ipc_port", lambda: None)
|
||||
monkeypatch.setattr(
|
||||
"artemis.data_engine.engine.get_ipc_port_file", lambda: tmp_path / "no-host-ipc"
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def isolated_plugin_registry(monkeypatch, tmp_path, request):
|
||||
"""Unit tests never load or mutate the user's installed plugins and credentials."""
|
||||
|
||||
Reference in new issue
Block a user