diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-11-25 14:27:58 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-11-25 14:27:58 -0500 |
commit | 37b65a39545d7c5b64c2403a617a97d1d0f4a012 (patch) | |
tree | 44cbebe0d0a6c37f430a85917549197df0cce946 | |
parent | e614d5a90baa771d6cda3860352890fdeb86236d (diff) | |
download | bcfg2-37b65a39545d7c5b64c2403a617a97d1d0f4a012.tar.gz bcfg2-37b65a39545d7c5b64c2403a617a97d1d0f4a012.tar.bz2 bcfg2-37b65a39545d7c5b64c2403a617a97d1d0f4a012.zip |
testsuite: fixed DatabaseBacked default Core object
-rw-r--r-- | testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |