mirror of
https://github.com/Casvt/MIND.git
synced 2026-02-19 11:54:46 -05:00
12 lines
313 B
Python
12 lines
313 B
Python
import unittest
|
|
|
|
from backend.db import DBConnection
|
|
from Noted import DB_FILENAME
|
|
|
|
class Test_DB(unittest.TestCase):
|
|
def test_foreign_key(self):
|
|
DBConnection.file = DB_FILENAME
|
|
instance = DBConnection(timeout=20.0)
|
|
self.assertEqual(instance.cursor().execute("PRAGMA foreign_keys;").fetchone()[0], 1)
|
|
|
|
|