From 34c080c4bda51950b1355603640336a7c0fb89b0 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Thu, 7 Nov 2019 09:55:41 +0100 Subject: [PATCH] Add _trustHook() to MockContainer CURA-6856 --- tests/Settings/MockContainer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Settings/MockContainer.py b/tests/Settings/MockContainer.py index 533938c631..0400359154 100644 --- a/tests/Settings/MockContainer.py +++ b/tests/Settings/MockContainer.py @@ -78,6 +78,10 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject): def getAllKeys(self): pass + # Should return false (or even throw an exception) if trust (or other verification) is invalidated. + def _trustHook(self, file_name: Optional[str]) -> bool: + return True + def setProperty(self, key, property_name, property_value, container = None, set_from_cache = False): pass