aboutsummaryrefslogtreecommitdiff
path: root/tests/test_sqlite_store.py
diff options
context:
space:
mode:
authorDiego Roversi <diego.roversi@gmail.com>2019-04-27 17:44:48 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-04-27 17:53:36 +0200
commit171dbffdbb904c355f5f4cacf59e85f1ee08fe85 (patch)
treec736efea625f8c3bc3cee5168fee4a9c740c215e /tests/test_sqlite_store.py
parent17e34987911fc4719ba041719024098c8976f601 (diff)
set the db store filename in the __init__. Default is ':memory:'
Diffstat (limited to 'tests/test_sqlite_store.py')
-rw-r--r--tests/test_sqlite_store.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_sqlite_store.py b/tests/test_sqlite_store.py
index 26ff45c..7c282b7 100644
--- a/tests/test_sqlite_store.py
+++ b/tests/test_sqlite_store.py
@@ -6,7 +6,8 @@ from pyapd.stores import sqlite, exceptions
class TestSqliteStore(unittest.TestCase):
def setUp(self):
- self.store = sqlite.Store()
+ self.store = sqlite.Store(file=':memory:')
+ self.store.createdb()
self.oid = 'https://test/object/12345'
self.obj = objects.Object(id=self.oid)
self.store.add(self.obj)