summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2021-11-13 19:22:36 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-11-15 07:57:00 +0100
commit30ec7fe89ac6966c45da11a646553b699cd38624 (patch)
tree5fbf152ee5654a43bac9e1df22af360ad182ddd6 /tests
parent8d9827c06ce1592cca111e7eafb9ebe0153104ef (diff)
Refs #33288 -- Made SQLite introspection raise DatabaseError on nonexistent tables.
All the other backends behave this way and we had to make adjustments to our test suite to account for this discrepancy. This also allows SQLite's get_relations() not to raise on a nonexistent table while making sure the InspectDBTestCase.test_introspection_errors test which ensures an error during introspection is surfaced in generated models files still passes.
Diffstat (limited to 'tests')
-rw-r--r--tests/schema/tests.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/schema/tests.py b/tests/schema/tests.py
index b8ad08239b..253483eb5e 100644
--- a/tests/schema/tests.py
+++ b/tests/schema/tests.py
@@ -119,9 +119,6 @@ class SchemaTests(TransactionTestCase):
for name, (type, desc) in columns.items():
if isinstance(type, tuple):
columns[name] = (type[0], desc)
- # SQLite also doesn't error properly
- if not columns:
- raise DatabaseError("Table does not exist (empty pragma)")
return columns
def get_primary_key(self, table):