- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for __init__ (0.13 sec)
-
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)