From f050be4bb66213fe151536fee835589fffadc1ae Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Tue, 7 Jan 2025 23:28:41 +0100 Subject: [PATCH] Patch get_objects_to_hash --- aiida_test_cache/archive_cache/_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aiida_test_cache/archive_cache/_utils.py b/aiida_test_cache/archive_cache/_utils.py index da23e14..aaf0c38 100644 --- a/aiida_test_cache/archive_cache/_utils.py +++ b/aiida_test_cache/archive_cache/_utils.py @@ -57,6 +57,9 @@ class MockNodeCaching(node_caching_class): #type: ignore """ def _get_objects_to_hash(self): + return self.get_objects_to_hash() + + def get_objects_to_hash(self): return hash_objects_func(self) monkeypatch.setattr(node_class, "_CLS_NODE_CACHING", MockNodeCaching)