Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 16, 2024
1 parent 2222c65 commit 3f97193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/engine/processes/calcjobs/test_calc_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ def test_get_objects_attributes(self, get_calcjob_builder):
def test_compute_hash_version_independent(self, get_calcjob_builder, monkeypatch, manager):
"""Test that :meth:`aiida.orm.CalcJobNode.compute_hash` is independent of the version of ``aiida-core``."""
import aiida

_, node_a = launch.run_get_node(get_calcjob_builder())

monkeypatch.setattr(aiida, '__version__', '0.0.0')
Expand Down
1 change: 1 addition & 0 deletions tests/orm/nodes/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@ def test_store_from_cache(self, tmp_path):
def test_hashing_errors(self, caplog, monkeypatch):
"""Tests that ``compute_hash`` fails in an expected manner."""
from aiida.orm.nodes.caching import NodeCaching

node = Data().store()

# monkeypatch `get_objects_to_hash` to raise a fake error
Expand Down

0 comments on commit 3f97193

Please sign in to comment.