"""Connector framework tests — interfaces only."""
from app.connectors import (
    ConnectorCapability,
    ConnectorRegistry,
    get_connector_registry,
    reset_connector_registry,
)


def test_registry_reset_and_register_keys():
    registry = reset_connector_registry()
    assert registry.keys() == []
    assert get_connector_registry() is registry


def test_capability_catalog_is_generic():
    values = {c.value for c in ConnectorCapability}
    expected = {
        "qr",
        "rfid",
        "barcode",
        "fingerprint",
        "face_recognition",
        "turnstile",
        "door_controller",
        "payment_terminal",
        "attendance_device",
        "custom",
    }
    assert expected.issubset(values)
