- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for get_settings (0.05 sec)
-
tests/test_tutorial/test_settings/test_app03.py
def get_main_mod(mod_path: str) -> ModuleType: main_mod = importlib.import_module(f"{mod_path}.main") return 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.admin_email == "******@****.***" assert settings.items_per_user == 50
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_settings/test_tutorial001.py
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") assert response.status_code == 200, response.text assert response.json() == { "app_name": "Awesome API",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 690 bytes - Viewed (0)