Files
clickthrough/tests/conftest.py
Luna b1d2b6b321
Some checks failed
CI / test (push) Failing after 1m12s
Add grid planner, CI, and tests
2026-04-05 19:27:55 +02:00

30 lines
584 B
Python

import base64
import pytest
from server.main import manager
@pytest.fixture
def fake_screenshot() -> str:
"""Return a reproducible base64 string representing a dummy screenshot."""
return base64.b64encode(b"clickthrough-dummy").decode()
@pytest.fixture
def default_grid_request(fake_screenshot):
return {
"width": 640,
"height": 480,
"screenshot_base64": fake_screenshot,
"rows": 3,
"columns": 3,
}
@pytest.fixture(autouse=True)
def reset_manager_state():
manager._grids.clear()
yield
manager._grids.clear()