1
from storm.databases.sqlite import SQLite
3
from tests.store.base import StoreTest
4
from tests.helper import TestHelper, MakePath
7
class SQLiteStoreTest(TestHelper, StoreTest):
12
TestHelper.setUp(self)
16
TestHelper.tearDown(self)
17
StoreTest.tearDown(self)
19
def create_database(self):
20
self.database = SQLite(self.make_path())
22
def create_tables(self):
23
connection = self.database.connect()
24
connection.execute("CREATE TABLE test "
25
"(id INTEGER PRIMARY KEY,"
26
" title VARCHAR DEFAULT 'Default Title')")
27
connection.execute("CREATE TABLE other "
28
"(id INTEGER PRIMARY KEY,"
30
" other_title VARCHAR)")
33
def drop_tables(self):