Files
browser-use--browser-harness/tests/conftest.py
T
2026-07-13 12:45:10 +08:00

17 lines
293 B
Python

import base64
import io
import pytest
from PIL import Image
def make_png(width, height):
buf = io.BytesIO()
Image.new("RGB", (width, height), "white").save(buf, format="PNG")
return base64.b64encode(buf.getvalue()).decode()
@pytest.fixture
def fake_png():
return make_png