Skip to content

Commit

Permalink
debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Dec 22, 2024
1 parent c8a3a91 commit 6b7edd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions aiida_test_cache/archive_cache/_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')]

Expand All @@ -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):
Expand Down

0 comments on commit 6b7edd5

Please sign in to comment.