summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestTemplateHelper.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2015-10-05 13:19:59 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2015-10-05 13:19:59 -0500
commit470723f1c9eabbeec63bba154e6d5c6dc75153ac (patch)
tree63c1e4b6b6a3e7b589bb4380d4a1bd073d94b519 /testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestTemplateHelper.py
parent35a2ad1d76790b62b3dbb41cb7fa112c81dc4d5f (diff)
parent3d2fca1e8573d60e67bb2fe642fb78c517d5ccc2 (diff)
downloadbcfg2-470723f1c9eabbeec63bba154e6d5c6dc75153ac.tar.gz
bcfg2-470723f1c9eabbeec63bba154e6d5c6dc75153ac.tar.bz2
bcfg2-470723f1c9eabbeec63bba154e6d5c6dc75153ac.zip
Merge pull request #299 from AlexanderS/fix/caching
Expire metadata cache in all Connector plugins.
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestTemplateHelper.py')
-rw-r--r--testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestTemplateHelper.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestTemplateHelper.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestTemplateHelper.py
index 1c2fa23a2..a470dca67 100644
--- a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestTemplateHelper.py
+++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestTemplateHelper.py
@@ -23,10 +23,13 @@ class TestHelperModule(Bcfg2TestCase):
test_obj = HelperModule
path = os.path.join(datastore, "test.py")
- def get_obj(self, path=None):
+ def get_obj(self, path=None, core=None):
if path is None:
path = self.path
- return self.test_obj(path)
+ if core is None:
+ core = Mock()
+ core.metadata_cache_mode = 'none'
+ return self.test_obj(path, core)
def test__init(self):
hm = self.get_obj()