@@ -116,7 +116,7 @@ def test_execute_dag(tmp_path, keep_shared, keep_scratch, keep_cache, writefile_
116116 shared_file = os .path .join (shared , f"shared_{ str (pu .key )} _attempt_0" , f"unit_{ id } _shared.txt" )
117117 scratch_file = os .path .join (scratch , f"scratch_{ str (pu .key )} _attempt_0" , f"unit_{ id } _scratch.txt" )
118118 unit_result_file = os .path .join (
119- cache_basedir , f"{ str (writefile_dag .key )} _cache " , f"{ str (pu .key )} _unitresults.json"
119+ cache_basedir , f"{ str (writefile_dag .key )} -results_cache " , f"{ str (pu .key )} _unitresults.json"
120120 )
121121
122122 if capture_stderr_stdout :
@@ -206,13 +206,16 @@ def test_execute_DAG_cached_unitresults(tmp_path):
206206 )
207207
208208 for pu in dep_dag .protocol_units :
209- assert os .path .exists (os .path .join (unit_results_dir , f"{ dep_dag .key } _cache" , f"{ str (pu .key )} _unitresults.json" ))
209+ assert os .path .exists (
210+ os .path .join (unit_results_dir , f"{ dep_dag .key } -results_cache" , f"{ str (pu .key )} _unitresults.json" )
211+ )
210212
211213 # choose a terminal result so that only one node is rerun
212214 pu_to_corrupt = dependent_units [0 ]
213215
214216 with open (
215- os .path .join (unit_results_dir , f"{ dep_dag .key } _cache" , f"{ str (pu_to_corrupt .key )} _unitresults.json" ), "a"
217+ os .path .join (unit_results_dir , f"{ dep_dag .key } -results_cache" , f"{ str (pu_to_corrupt .key )} _unitresults.json" ),
218+ "a" ,
216219 ) as f :
217220 f .write ("string that will break JSON." )
218221
0 commit comments