Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

530 B
Raw Blame
from __future__ import annotations

from typing import Final

from hypothesis import strategies as st
from pydantic import BaseModel, ConfigDict

from .inputs import generate_case_inputs


class _Input(BaseModel):
    model_config = ConfigDict(frozen=True, extra="forbid")

    identifier: str


def test_generate_case_inputs_is_deterministic() -> None:
    strategy: Final = st.builds(_Input, identifier=st.integers().map(str))

    assert generate_case_inputs(strategy, examples=4) == generate_case_inputs(strategy, examples=4)