- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for user_exists (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_param_in_path_and_dependency.py
from fastapi import Depends, FastAPI from fastapi.testclient import TestClient from inline_snapshot import snapshot app = FastAPI() async def user_exists(user_id: int): return True @app.get("/users/{user_id}", dependencies=[Depends(user_exists)]) async def read_users(user_id: int): pass client = TestClient(app) def test_read_users(): response = client.get("/users/42")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 3.6K bytes - Click Count (0) -
cmd/iam.go
err = errIAMActionNotAllowed return updatedAt, addedOrRemoved, effectivePolicies, err } // Validate that user exists. var userExists bool _, userExists = sys.GetUser(ctx, userOrGroup) if !userExists { err = errNoSuchUser return updatedAt, addedOrRemoved, effectivePolicies, err } }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Oct 15 17:00:45 GMT 2025 - 76.5K bytes - Click Count (0)