From 09b31c8b1b6561307988f5b6e550c83562f72103 Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Wed, 8 Jan 2025 11:39:39 +0100 Subject: [PATCH] Monkeypatch get_objects_to_hash --- aiida_test_cache/archive_cache/_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aiida_test_cache/archive_cache/_utils.py b/aiida_test_cache/archive_cache/_utils.py index a411e85..22f3524 100644 --- a/aiida_test_cache/archive_cache/_utils.py +++ b/aiida_test_cache/archive_cache/_utils.py @@ -56,7 +56,12 @@ class MockNodeCaching(node_caching_class): #type: ignore NodeCaching subclass with stripped down _get_objects_to_hash method """ + # Compatibility with aiida-core < 2.6 + # In https://github.com/aiidateam/aiida-core/pull/6323 def _get_objects_to_hash(self): + return self.get_objects_to_hash() + + def get_objects_to_hash(self): return hash_objects_func(self) # Compatibility with aiida-core < 2.6