"""Characterization test for the slides (TV slideshow) endpoint.

Written before extracting slides into a plugin: /api/slides must behave
identically as a plugin blueprint (same prefix, same response shape).
"""


def test_slides_endpoint_shape(client, db):
    """GET /api/slides returns a slides list and a basepath (no auth required)."""
    resp = client.get('/api/slides')
    assert resp.status_code == 200
    data = resp.get_json()['data']
    assert isinstance(data['slides'], list)
    assert 'basepath' in data
