Skip to content

Commit

Permalink
Fix calcjob hash in test_enable_archive_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Jan 7, 2025
1 parent f050be4 commit 7ad9674
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/archive_cache/test_archive_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def results(self):

@pytest.fixture(name='check_diff_workchain')
def check_diff_workchain_fixture():
"""Fixture to check the correct outputs/cachgin of the Diffworkchain
"""Fixture to check the correct outputs/caching of the Diffworkchain
in the tests in this file"""

EXPECTED_DIFF = """1,2c1
Expand All @@ -71,9 +71,9 @@ def _check_diff_workchain(res, node, should_have_used_cache=True):

#Make sure that the cache was used if it should have been
if should_have_used_cache:
assert cache_src is not None
assert cache_src is not None, "Workchain did not use cache even though it should have"
else:
assert cache_src is None
assert cache_src is None, "Workchain used the cache even though it shouldn't have"

return _check_diff_workchain

Expand Down Expand Up @@ -153,7 +153,9 @@ def test_enable_archive_cache(
"""

inputs = {'diff': generate_diff_inputs()}
diff_code = aiida_code_installed(filepath_executable='diff')
diff_code = aiida_code_installed(
filepath_executable='diff', default_calc_job_plugin=CALC_ENTRY_POINT
)
diff_code.store()
inputs['diff']['code'] = diff_code
with enable_archive_cache(archive_path, calculation_class=CalculationFactory(CALC_ENTRY_POINT)):
Expand Down

0 comments on commit 7ad9674

Please sign in to comment.