summaryrefslogtreecommitdiffstats
path: root/tests/db_tests/configuration_db_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/db_tests/configuration_db_test.py')
-rw-r--r--tests/db_tests/configuration_db_test.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/db_tests/configuration_db_test.py b/tests/db_tests/configuration_db_test.py
index e8b7188..dda616b 100644
--- a/tests/db_tests/configuration_db_test.py
+++ b/tests/db_tests/configuration_db_test.py
@@ -10,17 +10,14 @@
from storperf.db.configuration_db import ConfigurationDB
import os
import unittest
+import sqlite3
class ConfigurationDBTest(unittest.TestCase):
def setUp(self):
- ConfigurationDB.db_name = __name__ + ".db"
- try:
- os.remove(ConfigurationDB.db_name)
- except OSError:
- pass
-
+ ConfigurationDB.db_name = "file::memory:?cache=shared"
+ db = sqlite3.connect(ConfigurationDB.db_name)
self.config_db = ConfigurationDB()
def test_create_key(self):