@@ -46,7 +46,7 @@ def results(self):
46
46
47
47
@pytest .fixture (name = 'check_diff_workchain' )
48
48
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
50
50
in the tests in this file"""
51
51
52
52
EXPECTED_DIFF = """1,2c1
@@ -71,9 +71,9 @@ def _check_diff_workchain(res, node, should_have_used_cache=True):
71
71
72
72
#Make sure that the cache was used if it should have been
73
73
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"
75
75
else :
76
- assert cache_src is None
76
+ assert cache_src is None , "Workchain used the cache even though it shouldn't have"
77
77
78
78
return _check_diff_workchain
79
79
@@ -153,7 +153,9 @@ def test_enable_archive_cache(
153
153
"""
154
154
155
155
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
+ )
157
159
diff_code .store ()
158
160
inputs ['diff' ]['code' ] = diff_code
159
161
with enable_archive_cache (archive_path , calculation_class = CalculationFactory (CALC_ENTRY_POINT )):
0 commit comments