mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-04 15:13:26 -04:00
✔ Improve support for tests in editor (#1699)
* ♻️ Remove required extra steps to test in editor * 🎨 Format lint script * 📝 Remove obsolete extra steps required to test in editor from docs * 🐛 Fix coverage
This commit is contained in:
committed by
GitHub
parent
250fa519f9
commit
600f15faa0
@@ -332,7 +332,7 @@ openapi_schema = {
|
||||
@pytest.fixture(scope="module")
|
||||
def client():
|
||||
# Import while creating the client to create the DB after starting the test session
|
||||
from sql_databases_peewee.sql_app.main import app
|
||||
from docs_src.sql_databases_peewee.sql_app.main import app
|
||||
|
||||
test_db = Path("./test.db")
|
||||
with TestClient(app) as c:
|
||||
|
||||
Reference in New Issue
Block a user