- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 60 for Getenv (0.05 sec)
-
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:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 2.2K bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_tutorial001.py
from pytest import MonkeyPatch @pytest.fixture(name="app", params=[pytest.param("tutorial001_py39")]) def get_app(request: pytest.FixtureRequest, monkeypatch: MonkeyPatch): monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") mod = importlib.import_module(f"docs_src.settings.{request.param}") return mod.app def test_settings(app): client = TestClient(app) response = client.get("/info")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 690 bytes - Viewed (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", "******@****.***")Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 1.2K bytes - Viewed (0) -
tests/test_tutorial/test_conditional_openapi/test_tutorial001.py
importlib.reload(tutorial001_py39) client = TestClient(tutorial001_py39.app) return client def test_disable_openapi(monkeypatch): monkeypatch.setenv("OPENAPI_URL", "") # Load the client after setting the env var client = get_client() response = client.get("/openapi.json") assert response.status_code == 404, response.text response = client.get("/docs")Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 1.7K bytes - Viewed (0) -
docs/ru/docs/advanced/settings.md
/// tip | Совет Чтобы это работало, вам нужно `pip install python-dotenv`. /// ### Файл `.env` { #the-env-file } У вас может быть файл `.env` со следующим содержимым: ```bash ADMIN_EMAIL="******@****.***"Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 18.3K bytes - Viewed (0) -
docs/pt/docs/advanced/settings.md
/// tip | Dica Para isso funcionar, você precisa executar `pip install python-dotenv`. /// ### O arquivo `.env` { #the-env-file } Você poderia ter um arquivo `.env` com: ```bash ADMIN_EMAIL="******@****.***"Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 13K bytes - Viewed (0) -
docs/de/docs/advanced/settings.md
/// tip | Tipp Damit das funktioniert, müssen Sie `pip install python-dotenv` ausführen. /// ### Die `.env`-Datei { #the-env-file } Sie könnten eine `.env`-Datei haben, mit: ```bashRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 24 10:28:19 UTC 2025 - 13.1K bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_app02.py
test_main_mod = importlib.import_module(f"{mod_path}.test_main") return test_main_mod def test_settings(main_mod: ModuleType, monkeypatch: MonkeyPatch): monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") settings = main_mod.get_settings() assert settings.app_name == "Awesome API" assert settings.items_per_user == 50 def test_override_settings(test_main_mod: ModuleType):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 1K bytes - Viewed (0) -
docs/es/docs/advanced/settings.md
/// tip | Consejo Para que esto funcione, necesitas `pip install python-dotenv`. /// ### El archivo `.env` { #the-env-file } Podrías tener un archivo `.env` con: ```bash ADMIN_EMAIL="******@****.***"Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 13.2K bytes - Viewed (0) -
docs/en/docs/advanced/settings.md
/// tip For this to work, you need to `pip install python-dotenv`. /// ### The `.env` file { #the-env-file } You could have a `.env` file with: ```bash ADMIN_EMAIL="******@****.***" APP_NAME="ChimichangApp" ```Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 11.2K bytes - Viewed (0)