✔ 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:
Sebastián Ramírez
2020-07-10 11:08:19 +02:00
committed by GitHub
parent 250fa519f9
commit 600f15faa0
17 changed files with 21 additions and 35 deletions

View File

@@ -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: