config watcher

This commit is contained in:
ari committed 2022-08-14 15:31:42 -04:00
1 parent 586f52ba56
commit 08af01dd11
12 files changed
+316 -124

No files matched your search

+6 -2
View File
@@ -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()