From 07d5a4d4db5e6c791a6e4c255c9fa54c6f1e1f5c Mon Sep 17 00:00:00 2001 From: Ari Date: Thu, 25 Aug 2022 11:35:43 -0400 Subject: [PATCH] fixed db tests --- api/tests/unittests/automations/test_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/tests/unittests/automations/test_db.py b/api/tests/unittests/automations/test_db.py index 923556b..d80dffc 100644 --- a/api/tests/unittests/automations/test_db.py +++ b/api/tests/unittests/automations/test_db.py @@ -9,12 +9,12 @@ from .utils import TestWithDB class db_tests(TestWithDB): def test_db_creation(self): with self.db.get_cur() as cur: - cur.execute("SELECT name FROM sqlite_schema WHERE type ='table'") + cur.execute("SELECT name FROM sqlite_master WHERE type ='table'") tables = cur.fetchall() self.assertListEqual(tables, [("autos",)]) self.db.create_db() with self.db.get_cur() as cur: - cur.execute("SELECT name FROM sqlite_schema WHERE type ='table'") + cur.execute("SELECT name FROM sqlite_master WHERE type ='table'") tables = cur.fetchall() self.assertListEqual(tables, [("autos",)])