- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 212 for Ismail (0.14 sec)
-
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py
@needs_py310 # TODO: pv2 add version with Pydantic v2 @needs_pydanticv1 def test_create_user(client): test_user = {"email": "******@****.***", "password": "secret"} response = client.post("/users/", json=test_user) assert response.status_code == 200, response.text data = response.json() assert test_user["email"] == data["email"] assert "id" in data response = client.post("/users/", json=test_user)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.5K bytes - Viewed (0) -
docs_src/sql_databases/sql_app_py39/tests/test_sql_app.py
client = TestClient(app) def test_create_user(): response = client.post( "/users/", json={"email": "******@****.***", "password": "chimichangas4life"}, ) assert response.status_code == 200, response.text data = response.json() assert data["email"] == "******@****.***" assert "id" in data user_id = data["id"] response = client.get(f"/users/{user_id}")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 1.2K bytes - Viewed (0) -
docs_src/settings/app02_an_py39/main.py
@lru_cache def get_settings(): return Settings() @app.get("/info") async def info(settings: Annotated[Settings, Depends(get_settings)]): return { "app_name": settings.app_name, "admin_email": settings.admin_email, "items_per_user": settings.items_per_user,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 24 20:26:06 GMT 2023 - 445 bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_tutorial001.py
@needs_pydanticv2 def test_settings(monkeypatch: MonkeyPatch): monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") from docs_src.settings.tutorial001 import app client = TestClient(app) response = client.get("/info") assert response.status_code == 200, response.text assert response.json() == { "app_name": "Awesome API", "admin_email": "******@****.***", "items_per_user": 50,
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 552 bytes - Viewed (0) -
docs_src/security/tutorial005_an.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 5.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_py39.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.3K bytes - Viewed (0) -
docs_src/settings/app02_an_py39/config.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 159 bytes - Viewed (0) -
docs_src/response_model/tutorial003_01_py310.py
from fastapi import FastAPI from pydantic import BaseModel, EmailStr app = FastAPI() class BaseUser(BaseModel): username: str email: EmailStr full_name: str | None = None class UserIn(BaseUser): password: str @app.post("/user/") async def create_user(user: UserIn) -> BaseUser:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jan 07 13:45:48 GMT 2023 - 317 bytes - Viewed (0) -
docs_src/response_model/tutorial003_01.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel, EmailStr app = FastAPI() class BaseUser(BaseModel): username: str email: EmailStr full_name: Union[str, None] = None class UserIn(BaseUser): password: str @app.post("/user/") async def create_user(user: UserIn) -> BaseUser:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jan 07 13:45:48 GMT 2023 - 349 bytes - Viewed (0) -
.github/actions/people/action.yml
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jul 09 15:44:40 GMT 2023 - 333 bytes - Viewed (0)