mirror of
https://github.com/Casvt/MIND.git
synced 2026-02-19 11:54:46 -05:00
* Update README.md * Update README.md * Fixed problem with docker volume mount location * Updated docker compose with new volume mount location * Fixed folder creation for db file * Added support for cross-timezone clients * Fixed database test Co-authored-by: Noted <57927413+ItsNoted@users.noreply.github.com>
12 lines
342 B
Python
12 lines
342 B
Python
import unittest
|
|
|
|
from backend.db import DBConnection
|
|
from Noted import DB_FILENAME, _folder_path
|
|
|
|
class Test_DB(unittest.TestCase):
|
|
def test_foreign_key(self):
|
|
DBConnection.file = _folder_path(*DB_FILENAME)
|
|
instance = DBConnection(timeout=20.0)
|
|
self.assertEqual(instance.cursor().execute("PRAGMA foreign_keys;").fetchone()[0], 1)
|
|
|
|
|