v2 initial work
This commit is contained in:
1 parent
2bc7e11bb1
commit
3a89fe5efc
36 files changed
+830
-4
No files matched your search
@@ -0,0 +1,15 @@
|
||||
from pathlib import Path
|
||||
from unittest import TestCase
|
||||
from tempfile import mktemp
|
||||
|
||||
from src.automations_v2.db import AutomationDBConnection
|
||||
|
||||
|
||||
class TestWithDB(TestCase):
|
||||
def setUp(self) -> None:
|
||||
self.db_file = Path(mktemp() + ".db")
|
||||
self.db = AutomationDBConnection(self.db_file)
|
||||
self.db.create_db()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
self.db_file.unlink()
|
||||
Reference in new issue
Block a user