Browse Source

Add _trustHook() to MockContainer

CURA-6856
Lipu Fei 5 years ago
parent
commit
34c080c4bd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/Settings/MockContainer.py

+ 4 - 0
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