- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 26 for ADMIN_EMAIL (0.29 seconds)
-
docs_src/settings/tutorial001_pv1_py39.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 413 bytes - Click Count (0) -
docs_src/settings/app02_py39/test_main.py
client = TestClient(app) def get_settings_override(): return Settings(admin_email="******@****.***") app.dependency_overrides[get_settings] = get_settings_override def test_app(): response = client.get("/info") data = response.json() assert data == { "app_name": "Awesome API", "admin_email": "******@****.***", "items_per_user": 50,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 515 bytes - Click Count (0) -
docs_src/settings/app02_py39/main.py
@lru_cache def get_settings(): return Settings() @app.get("/info") async def info(settings: Settings = Depends(get_settings)): return { "app_name": settings.app_name, "admin_email": settings.admin_email, "items_per_user": settings.items_per_user,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 406 bytes - Click Count (0) -
docs/es/docs/advanced/settings.md
### Ejecutar el servidor { #run-the-server } Luego, ejecutarÃas el servidor pasando las configuraciones como variables de entorno, por ejemplo, podrÃas establecer un `ADMIN_EMAIL` y `APP_NAME` con: <div class="termy"> ```console $ ADMIN_EMAIL="******@****.***" APP_NAME="ChimichangApp" fastapi run main.py <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) ```Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 13.2K bytes - Click Count (0) -
tests/test_tutorial/test_settings/test_app03.py
monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") settings = main_mod.get_settings() assert settings.app_name == "Awesome API" assert settings.admin_email == "******@****.***" assert settings.items_per_user == 50 def test_endpoint(main_mod: ModuleType, monkeypatch: MonkeyPatch): monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") client = TestClient(main_mod.app)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 1.2K bytes - Click Count (0) -
docs_src/settings/tutorial001_py39.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 419 bytes - Click Count (0) -
tests/test_tutorial/test_settings/test_app01.py
if mod_name in sys.modules: del sys.modules[mod_name] monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") main_mod = importlib.import_module(mod_name) return TestClient(main_mod.app) def test_settings_validation_error(mod_name: str, monkeypatch: MonkeyPatch): monkeypatch.delenv("ADMIN_EMAIL", raising=False) if mod_name in sys.modules: del sys.modules[mod_name] # pragma: no coverCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 2.2K bytes - Click Count (0) -
docs_src/settings/app01_py39/config.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 183 bytes - Click Count (0) -
docs_src/settings/app03_an_py39/config_pv1.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 198 bytes - Click Count (0) -
docs_src/settings/app01_py39/main.py
from fastapi import FastAPI from .config import settings app = FastAPI() @app.get("/info") async def info(): return { "app_name": settings.app_name, "admin_email": settings.admin_email, "items_per_user": settings.items_per_user,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 267 bytes - Click Count (0)