diff options
author | bquinn <brendan@cluefulmedia.com> | 2018-01-09 16:04:56 +0000 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-01-27 18:51:40 -0500 |
commit | c2b969e124f65d375aac969f253279085b6f7078 (patch) | |
tree | 9e484478a50e0815ed8cadee122dd5d0c6914856 /tests/introspection | |
parent | 92f48680dbd2e02f2b33f6ad0e35b7d337889fb2 (diff) | |
download | django-c2b969e124f65d375aac969f253279085b6f7078.tar.gz |
Fixed #29004 -- Added inspectdb --include-views option.
Diffstat (limited to 'tests/introspection')
-rw-r--r-- | tests/introspection/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py index a66ecaba03..ce102fcdad 100644 --- a/tests/introspection/tests.py +++ b/tests/introspection/tests.py @@ -151,7 +151,7 @@ class IntrospectionTests(TransactionTestCase): ] for statement in create_table_statements: with connection.cursor() as cursor: - cursor.fetchone = mock.Mock(return_value=[statement.format(Article._meta.db_table)]) + cursor.fetchone = mock.Mock(return_value=[statement.format(Article._meta.db_table), 'table']) relations = connection.introspection.get_relations(cursor, 'mocked_table') self.assertEqual(relations, {'art_id': ('id', Article._meta.db_table)}) |