Skip to content

Commit 7ad9674

Browse files
committed
Fix calcjob hash in test_enable_archive_cache
1 parent f050be4 commit 7ad9674

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/archive_cache/test_archive_cache.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def results(self):
4646

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

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

7272
#Make sure that the cache was used if it should have been
7373
if should_have_used_cache:
74-
assert cache_src is not None
74+
assert cache_src is not None, "Workchain did not use cache even though it should have"
7575
else:
76-
assert cache_src is None
76+
assert cache_src is None, "Workchain used the cache even though it shouldn't have"
7777

7878
return _check_diff_workchain
7979

@@ -153,7 +153,9 @@ def test_enable_archive_cache(
153153
"""
154154

155155
inputs = {'diff': generate_diff_inputs()}
156-
diff_code = aiida_code_installed(filepath_executable='diff')
156+
diff_code = aiida_code_installed(
157+
filepath_executable='diff', default_calc_job_plugin=CALC_ENTRY_POINT
158+
)
157159
diff_code.store()
158160
inputs['diff']['code'] = diff_code
159161
with enable_archive_cache(archive_path, calculation_class=CalculationFactory(CALC_ENTRY_POINT)):

0 commit comments

Comments
 (0)