From 6b7edd5a6d78d5060464bc8c1fbf74564704d15d Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Sat, 21 Dec 2024 22:30:05 +0100 Subject: [PATCH] debug code --- .github/workflows/ci.yml | 2 +- aiida_test_cache/archive_cache/_fixtures.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cf58c4..976b04e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: PYTEST_ADDOPTS: "--durations=0" run: | aiida-mock-code || true - pytest --cov=aiida_test_cache tests/ + pytest -s --cov=aiida_test_cache tests/archive_cache/test_archive_cache.py::test_enable_archive_cache_non_existent - name: Upload coverage report uses: codecov/codecov-action@v5 diff --git a/aiida_test_cache/archive_cache/_fixtures.py b/aiida_test_cache/archive_cache/_fixtures.py index 6e6e7a3..56caa64 100644 --- a/aiida_test_cache/archive_cache/_fixtures.py +++ b/aiida_test_cache/archive_cache/_fixtures.py @@ -248,6 +248,7 @@ def mock_objects_to_hash_code(self): Return a list of objects which should be included in the hash of a AbstractCode node """ self = get_node_from_hash_objects_caller(self) + print(f"hash_code: {self.base.attributes.get(key='input_plugin')}") # computer names are changed by aiida-core if imported and do not have same uuid. return [self.base.attributes.get(key='input_plugin')] @@ -274,6 +275,7 @@ def mock_objects_to_hash_calcjob(self): link_type=(LinkType.INPUT_CALC, LinkType.INPUT_WORK) ) if entry.link_label not in hash_ignored_inputs }] + print(objects) return objects def mock_objects_to_hash(self):