- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for __init__ (0.26 sec)
-
docs/en/docs/advanced/testing-database.md
We create a new file at `sql_app/tests/test_sql_app.py`. So the new file structure looks like: ``` 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 ``` ## Create the new database session First, we create a new database session with the new database.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 3.5K bytes - Viewed (0) -
docs/em/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: Sat Apr 01 09:26:04 GMT 2023 - 2.6K 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)