From 2fdf55ec1bbbc95c8c2540c206dbd7d6c1b9c348 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Thu, 11 Sep 2014 10:57:48 -0400 Subject: [PATCH] Fix check for skipping splunk inventory test when using sqlite. --- awx/main/tests/commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/awx/main/tests/commands.py b/awx/main/tests/commands.py index be5f9f4f9b..ed5536c8f7 100644 --- a/awx/main/tests/commands.py +++ b/awx/main/tests/commands.py @@ -20,8 +20,6 @@ from django.core.management import call_command from django.core.management.base import CommandError from django.utils.timezone import now from django.test.utils import override_settings -import django.db.backends.sqlite3.base -import django.db # AWX from awx.main.models import * @@ -867,7 +865,7 @@ class InventoryImportTest(BaseCommandMixin, BaseLiveServerTest): @unittest.skipIf(getattr(settings, 'LOCAL_DEVELOPMENT', False), 'Skip this test in local development environments, ' 'which may vary widely on memory.') - @unittest.skipIf(django.db.backend == django.db.backends.sqlite3.base, + @unittest.skipIf(settings.DATABASES['default']['ENGINE'] == 'django.db.backends.sqlite3', 'Skip this test if we are on sqlite') def test_splunk_inventory(self): new_inv = self.organizations[0].inventories.create(name='splunk')