From c3a1337dfaa90baa58f0ecd647a595f7c57eb772 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Sun, 11 Mar 2018 12:52:55 +0100 Subject: [PATCH] Refs #29004 -- Optimized InspectDBTransactionalTests.test_include_views() by limiting introspected tables. --- tests/inspectdb/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py index 7ffdaf71f2..1ec520ace0 100644 --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -284,11 +284,11 @@ class InspectDBTransactionalTests(TransactionTestCase): view_model = 'class InspectdbPeopleView(models.Model):' view_managed = 'managed = False # Created from a view.' try: - call_command('inspectdb', stdout=out) + call_command('inspectdb', table_name_filter=inspectdb_tables_only, stdout=out) no_views_output = out.getvalue() self.assertNotIn(view_model, no_views_output) self.assertNotIn(view_managed, no_views_output) - call_command('inspectdb', include_views=True, stdout=out) + call_command('inspectdb', table_name_filter=inspectdb_tables_only, include_views=True, stdout=out) with_views_output = out.getvalue() self.assertIn(view_model, with_views_output) self.assertIn(view_managed, with_views_output)