1
0
forked from arti/doors
doors/kdoorweb/tests/test_db.py

19 lines
343 B
Python
Raw Normal View History

2020-10-08 16:47:53 +00:00
import unittest
from kdoorweb.db import DB
class TestDB(unittest.TestCase):
def setUp(self) -> None:
self.db = DB()
2020-10-08 16:47:53 +00: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 16:47:53 +00:00
if __name__ == '__main__':
unittest.main()