mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed pytest warning about TestClient class
This commit is contained in:
parent
b314e088c5
commit
450d2e2896
2 changed files with 5 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ from .fixtures import (
|
|||
make_app_client,
|
||||
TABLES,
|
||||
TEMP_PLUGIN_SECRET_FILE,
|
||||
TestClient,
|
||||
TestClient as _TestClient,
|
||||
) # noqa
|
||||
from datasette.app import Datasette
|
||||
from datasette.plugins import get_plugins, DEFAULT_PLUGINS
|
||||
|
|
@ -293,7 +293,7 @@ def view_names_client(tmp_path_factory):
|
|||
db_path = str(tmpdir / "fixtures.db")
|
||||
conn = sqlite3.connect(db_path)
|
||||
conn.executescript(TABLES)
|
||||
return TestClient(
|
||||
return _TestClient(
|
||||
Datasette(
|
||||
[db_path], template_dir=str(templates), plugins_dir=str(plugins)
|
||||
).app()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue