mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-27 03:14:33 +02:00
iterdump() workaround for compatibility with pysqlite3
This commit is contained in:
parent
e02c8f35d4
commit
c91f1e6957
3 changed files with 7 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from sqlite_utils.db import Database, ColumnDetails
|
||||
from sqlite_utils import cli
|
||||
from sqlite_utils.utils import iterdump
|
||||
from click.testing import CliRunner
|
||||
import pytest
|
||||
import sqlite3
|
||||
|
|
@ -79,7 +80,7 @@ def test_analyze_column(db_to_analyze, column, expected):
|
|||
def db_to_analyze_path(db_to_analyze, tmpdir):
|
||||
path = str(tmpdir / "test.db")
|
||||
db = sqlite3.connect(path)
|
||||
db.executescript("\n".join(db_to_analyze.conn.iterdump()))
|
||||
db.executescript("\n".join(iterdump(db_to_analyze.conn)))
|
||||
return path
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue