mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import absolute_import,unicode_literals
|
||||
|
||||
from functools import update_wrapper
|
||||
|
||||
@@ -125,12 +125,12 @@ class IntrospectionTests(TestCase):
|
||||
def test_get_key_columns(self):
|
||||
cursor = connection.cursor()
|
||||
key_columns = connection.introspection.get_key_columns(cursor, Article._meta.db_table)
|
||||
self.assertEqual(key_columns, [(u'reporter_id', Reporter._meta.db_table, u'id')])
|
||||
self.assertEqual(key_columns, [('reporter_id', Reporter._meta.db_table, 'id')])
|
||||
|
||||
def test_get_primary_key_column(self):
|
||||
cursor = connection.cursor()
|
||||
primary_key_column = connection.introspection.get_primary_key_column(cursor, Article._meta.db_table)
|
||||
self.assertEqual(primary_key_column, u'id')
|
||||
self.assertEqual(primary_key_column, 'id')
|
||||
|
||||
def test_get_indexes(self):
|
||||
cursor = connection.cursor()
|
||||
|
||||
Reference in New Issue
Block a user