Labels images and lays them out in one labelled grid or an XY plot, from one image up to a loop's frames of batches. One DOM widget with kit controls, grid presets that follow the run's shape, and a new shared ColorField kit control.
13 lines
355 B
Python
13 lines
355 B
Python
"""/wp/api/label-grid/fonts — the widget's font list."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from engine import label_grid as g
|
|
|
|
|
|
async def test_fonts_list_starts_with_default(wp_client):
|
|
resp = await wp_client.get("/wp/api/label-grid/fonts")
|
|
assert resp.status == 200
|
|
body = await resp.json()
|
|
assert body["fonts"][0] == g.DEFAULT_FONT
|