summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-05-18 12:08:36 +0200
committerClaude Paroz <claude@2xlibre.net>2012-05-18 12:12:45 +0200
commit7549de841c6e0d18822af047763f5e3211539be8 (patch)
treecd5e446841fa574696481f323f6e1ca4930d3030 /tests
parent7495730d32498c7ee8113e190ece98ab3ce45a30 (diff)
Fixed #18334 -- Fixed detection of supports_stddev backend feature.
Thanks to Michael Manfre for the report and Anssi Kääriäinen for the review.
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/backends/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/regressiontests/backends/tests.py b/tests/regressiontests/backends/tests.py
index eec817c5a2..10e69b65c1 100644
--- a/tests/regressiontests/backends/tests.py
+++ b/tests/regressiontests/backends/tests.py
@@ -397,6 +397,12 @@ class BackendTestCase(TestCase):
self.assertTrue(hasattr(connection.ops, 'connection'))
self.assertEqual(connection, connection.ops.connection)
+ def test_supports_needed_confirm(self):
+ connection.features.confirm()
+ self.assertIn(connection.features.supports_transactions, (True, False))
+ self.assertIn(connection.features.supports_stddev, (True, False))
+ self.assertIn(connection.features.can_introspect_foreign_keys, (True, False))
+
def test_duplicate_table_error(self):
""" Test that creating an existing table returns a DatabaseError """
cursor = connection.cursor()