config watcher
This commit is contained in:
1 parent
586f52ba56
commit
08af01dd11
12 files changed
+316
-124
No files matched your search
@@ -5,11 +5,15 @@ from tempfile import mktemp
|
||||
from src.automations_v2.db import AutomationDBConnection
|
||||
|
||||
|
||||
def make_temp_db():
|
||||
return AutomationDBConnection(Path(mktemp() + ".db"))
|
||||
|
||||
|
||||
class TestWithDB(TestCase):
|
||||
def setUp(self) -> None:
|
||||
self.db_file = Path(mktemp() + ".db")
|
||||
self.db = AutomationDBConnection(self.db_file)
|
||||
self.db = make_temp_db()
|
||||
self.db.create_db()
|
||||
self.db_file = self.db.db_file
|
||||
|
||||
def tearDown(self) -> None:
|
||||
self.db_file.unlink()
|
||||
Reference in new issue
Block a user