1
0
mirror of http://git.k-space.ee/arti/doors.git synced 2024-10-13 16:30:58 +03:00
doors/kdoorweb/tests/test_db.py

19 lines
343 B
Python
Raw Normal View History

2020-10-08 19:47:53 +03:00
import unittest
from kdoorweb.db import DB
class TestDB(unittest.TestCase):
def setUp(self) -> None:
self.db = DB()
2020-10-08 19:47:53 +03:00
def test_create_db_in_memory(self):
DB.create_db(dbfile=":memory:")
def test_create_db_in_connection(self):
DB.create_db(dbfile=self.db)
2020-10-08 19:47:53 +03:00
if __name__ == '__main__':
unittest.main()