From 171dbffdbb904c355f5f4cacf59e85f1ee08fe85 Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Sat, 27 Apr 2019 17:44:48 +0200 Subject: set the db store filename in the __init__. Default is ':memory:' --- tests/test_sqlite_store.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.3