From 37b65a39545d7c5b64c2403a617a97d1d0f4a012 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Mon, 25 Nov 2013 14:27:58 -0500 Subject: testsuite: fixed DatabaseBacked default Core object --- testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugin') diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py index f0531d113..f9296ac89 100644 --- a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py +++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py @@ -80,7 +80,7 @@ class TestDatabaseBacked(TestPlugin): def get_obj(self, core=None): if not HAS_DJANGO: if core is None: - core = Mock() + core = MagicMock() # disable the database core.setup.cfp.getboolean.return_value = False return TestPlugin.get_obj(self, core=core) -- cgit v1.2.3-1-g7c22