Layout change: - companion-app/ → root (app/, build.gradle.kts, gradlew, etc.) - hermes-android-bridge/ → removed (absorbed into Compose rewrite) - hermes-android-plugin/ → plugin/ - root tools/, skills/, tests/ → plugin/tools/, plugin/skills/, plugin/tests/ - root setup.py, pyproject.toml, requirements.txt → plugin/ - companion_relay/ → unchanged (Python package name = dir name) - CI workflows updated for new paths Android Studio now opens the repo root directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
21 lines
488 B
Python
21 lines
488 B
Python
import pytest
|
|
import responses
|
|
|
|
|
|
@pytest.fixture
|
|
def bridge_url():
|
|
return "http://localhost:8765"
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def mock_env(monkeypatch, bridge_url):
|
|
monkeypatch.setenv("ANDROID_BRIDGE_URL", bridge_url)
|
|
monkeypatch.setenv("ANDROID_BRIDGE_TIMEOUT", "5")
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_bridge(bridge_url):
|
|
"""Activate responses mock and return the bridge_url for registering mocks."""
|
|
with responses.RequestsMock() as rsps:
|
|
yield rsps, bridge_url
|