mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-20 07:24:23 +02:00
Now you just 'from sqlite_utils import Database'
Plus fixed ad_id in the Russian ads example in the docs
This commit is contained in:
parent
b69f8b6c85
commit
5deb65f062
4 changed files with 13 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from sqlite_utils import db
|
||||
from sqlite_utils import Database
|
||||
import json
|
||||
import sqlite3
|
||||
import pytest
|
||||
|
|
@ -6,7 +6,7 @@ import pytest
|
|||
|
||||
@pytest.fixture
|
||||
def fresh_db():
|
||||
return db.Database(sqlite3.connect(":memory:"))
|
||||
return Database(sqlite3.connect(":memory:"))
|
||||
|
||||
|
||||
def test_create_table(fresh_db):
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
from sqlite_utils import db
|
||||
from sqlite_utils import Database
|
||||
import sqlite3
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def existing_db():
|
||||
database = db.Database(sqlite3.connect(":memory:"))
|
||||
database = Database(sqlite3.connect(":memory:"))
|
||||
database.conn.executescript(
|
||||
"""
|
||||
CREATE TABLE foo (text TEXT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue