diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-11-10 16:38:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 16:38:43 +0100 |
commit | 0b95a96ee10d3e12aef01d449467bcf4641286b4 (patch) | |
tree | 58c246817a10ff66995d2e980d72a5a8cf4494c0 /tests/introspection | |
parent | afea68ca51c20b726d3b97aaffdfe4e3b632e435 (diff) | |
download | django-0b95a96ee10d3e12aef01d449467bcf4641286b4.tar.gz |
Removed DatabaseIntrospection.get_key_columns().
Thanks Simon Charette for the report.
Diffstat (limited to 'tests/introspection')
-rw-r--r-- | tests/introspection/tests.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py index bd5d7c942a..b55714f93e 100644 --- a/tests/introspection/tests.py +++ b/tests/introspection/tests.py @@ -168,15 +168,6 @@ class IntrospectionTests(TransactionTestCase): relations = connection.introspection.get_relations(cursor, 'mocked_table') self.assertEqual(relations, {'art_id': ('id', Article._meta.db_table)}) - @skipUnlessDBFeature('can_introspect_foreign_keys') - def test_get_key_columns(self): - with connection.cursor() as cursor: - key_columns = connection.introspection.get_key_columns(cursor, Article._meta.db_table) - self.assertEqual(set(key_columns), { - ('reporter_id', Reporter._meta.db_table, 'id'), - ('response_to_id', Article._meta.db_table, 'id'), - }) - def test_get_primary_key_column(self): with connection.cursor() as cursor: primary_key_column = connection.introspection.get_primary_key_column(cursor, Article._meta.db_table) |