from __future__ import annotations

import pytest
from pydantic import ValidationError

from rabbitmq_mcp.schemas.generated_schemas import Exchange, Queue


def test_queue_name_validator() -> None:
    with pytest.raises(ValidationError):
        Queue(name="invalid name")


def test_exchange_type_validator() -> None:
    with pytest.raises(ValidationError):
        Exchange(name="ex", type="invalid", vhost="/")
