Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for c_key (0.02 seconds)

  1. tests/test_enforce_once_required_parameter.py

    from fastapi import Depends, FastAPI, Query
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    app = FastAPI()
    
    
    def _get_client_key(client_id: str = Query(...)) -> str:
        return f"{client_id}_key"
    
    
    def _get_client_tag(client_id: str | None = Query(None)) -> str | None:
        if client_id is None:
            return None
        return f"{client_id}_tag"
    
    
    @app.get("/foo")
    def foo_handler(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.1K bytes
    - Click Count (0)
Back to Top