- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 94 for testing (0.42 sec)
-
docs/en/docs/advanced/async-tests.md
## Example For a simple example, let's consider a file structure similar to the one described in [Bigger Applications](../tutorial/bigger-applications.md){.internal-link target=_blank} and [Testing](../tutorial/testing.md){.internal-link target=_blank}: ``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` The file `main.py` would have: ```Python
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jan 13 12:07:15 GMT 2024 - 3.9K bytes - Viewed (0) -
tests/test_tutorial/test_testing_dependencies/test_tutorial001.py
from docs_src.dependency_testing.tutorial001 import ( app, client, test_override_in_items, test_override_in_items_with_params, test_override_in_items_with_q, ) def test_override_in_items_run(): test_override_in_items() def test_override_in_items_with_q_run(): test_override_in_items_with_q() def test_override_in_items_with_params_run(): test_override_in_items_with_params()
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 10 09:08:19 GMT 2020 - 1.5K bytes - Viewed (0) -
tests/test_tutorial/test_testing/test_main_b.py
from docs_src.app_testing.app_b import test_main def test_app(): test_main.test_create_existing_item() test_main.test_create_item() test_main.test_create_item_bad_token() test_main.test_read_nonexistent_item() test_main.test_read_item()
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 300 bytes - Viewed (0) -
tests/test_tutorial/test_testing/test_main_b_an_py39.py
from ...utils import needs_py39 @needs_py39 def test_app(): from docs_src.app_testing.app_b_an_py39 import test_main test_main.test_create_existing_item() test_main.test_create_item() test_main.test_create_item_bad_token() test_main.test_read_nonexistent_item() test_main.test_read_item()
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 357 bytes - Viewed (0) -
docs/es/docs/deployment/versions.md
## Actualizando las versiones de FastAPI Para esto es recomendable primero añadir tests a tu aplicación. Con **FastAPI** es muy fácil (gracias a Starlette), revisa la documentación [Testing](../tutorial/testing.md){.internal-link target=_blank} Luego de tener los tests, puedes actualizar la versión de **FastAPI** a una más reciente y asegurarte de que tu código funciona correctamente ejecutando los tests.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Feb 07 11:55:38 GMT 2024 - 4.2K bytes - Viewed (0) -
docs/de/docs/deployment/versions.md
## Upgrade der FastAPI-Versionen Sie sollten Tests für Ihre Anwendung hinzufügen. Mit **FastAPI** ist das sehr einfach (dank Starlette), schauen Sie sich die Dokumentation an: [Testen](../tutorial/testing.md){.internal-link target=_blank}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:06:38 GMT 2024 - 3.9K bytes - Viewed (0) -
docs_src/settings/app02_an/test_main.py
client = TestClient(app) def get_settings_override(): return Settings(admin_email="testing******@****.***") 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": "testing******@****.***", "items_per_user": 50,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 515 bytes - Viewed (0) -
docs/en/docs/history-design-future.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/pt/docs/deployment/versions.md
## Atualizando as versões do FastAPI Você deve adicionar testes para a sua aplicação. Com **FastAPI** isso é muito fácil (graças a Starlette), verifique a documentação: [Testing](../tutorial/testing.md){.internal-link target=\_blank} Após a criação dos testes, você pode atualizar a sua versão do **FastAPI** para uma mais recente, execute os testes para se certificar de que todo o seu código está funcionando corretamente.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jul 29 20:14:40 GMT 2021 - 3.8K bytes - Viewed (0) -
docs/en/docs/advanced/settings.md
```Python hl_lines="16 18-20" {!> ../../../docs_src/settings/app02/main.py!} ``` ### Settings and testing Then it would be very easy to provide a different settings object during testing by creating a dependency override for `get_settings`: ```Python hl_lines="9-10 13 21" {!../../../docs_src/settings/app02/test_main.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 15.7K bytes - Viewed (0)