- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 237 for __ (0.12 sec)
-
tests/test_tutorial/test_extra_data_types/test_tutorial001_an_py39.py
} ) } }, }, } } }, "components": { "schemas": { "Body_read_items_items__item_id__put": {
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Apr 19 00:11:40 GMT 2024 - 7K bytes - Viewed (0) -
tests/test_tutorial/test_extra_data_types/test_tutorial001_py310.py
} ) } }, }, } } }, "components": { "schemas": { "Body_read_items_items__item_id__put": {
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Apr 19 00:11:40 GMT 2024 - 7K bytes - Viewed (0) -
docs/zh/docs/advanced/testing-database.md
本例中,要创建仅用于测试的临时数据库。 ## 文件架构 创建新文件 `sql_app/tests/test_sql_app.py`。 因此,新的文件架构如下: ``` hl_lines="9-11" . └── sql_app ├── __init__.py ├── crud.py ├── database.py ├── main.py ├── models.py ├── schemas.py └── tests ├── __init__.py └── test_sql_app.py ``` ## 创建新的数据库会话 首先,为新建数据库创建新的数据库会话。 测试时,使用 `test.db` 替代 `sql_app.db`。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jan 28 18:09:26 GMT 2024 - 2.8K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial003.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 9.4K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial003_an.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 9.4K bytes - Viewed (2) -
tests/test_generic_parameterless_depends.py
Dep = Annotated[T, Depends()] class A: pass class B: pass @app.get("/a") async def a(dep: Dep[A]): return {"cls": dep.__class__.__name__} @app.get("/b") async def b(dep: Dep[B]): return {"cls": dep.__class__.__name__} client = TestClient(app) def test_generic_parameterless_depends(): response = client.get("/a")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:52:56 GMT 2024 - 1.8K bytes - Viewed (0) -
buildscripts/verify-healing-empty-erasure-set.sh
fi fi } function check_online() { if ! grep -q 'Status:' ${WORK_DIR}/dist-minio-*.log; then echo "1" fi } function purge() { rm -rf "$1" } function __init__() { echo "Initializing environment" mkdir -p "$WORK_DIR" mkdir -p "$MINIO_CONFIG_DIR" ## version is purposefully set to '3' for minio to migrate configuration file
Shell Script - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 25 21:55:41 GMT 2024 - 3.2K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial003_py310.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 9.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/bigger-applications.md
## 一个文件结构示例 假设你的文件结构如下: ``` . ├── app │ ├── __init__.py │ ├── main.py │ ├── dependencies.py │ └── routers │ │ ├── __init__.py │ │ ├── items.py │ │ └── users.py │ └── internal │ ├── __init__.py │ └── admin.py ``` !!! tip 上面有几个 `__init__.py` 文件:每个目录或子目录中都有一个。 这就是能将代码从一个文件导入到另一个文件的原因。 例如,在 `app/main.py` 中,你可以有如下一行:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 18.5K bytes - Viewed (0) -
tests/test_tutorial/test_body_fields/test_tutorial001.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.2K bytes - Viewed (0)