You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This has not been checked out. If a cache file was listed in the config AND we hit
342
343
# on a prefix, it MUST be checked out
343
344
raiseValueError(
344
-
f"Expected to find cached test data at '{root_folder_path}', but that directory does not exist. If a test uses attack data and a prefix matches that data, then the the cached data MUST exist."
345
+
f"The following directory does not exist: [{root_folder_path}]. "
346
+
"You must check out this directory since you have supplied 1 or more test_data_caches in contentctl.yml."
345
347
)
346
348
347
349
ifnotnew_file_path.is_file():
348
350
raiseValueError(
349
-
f"Expected to find the cached data file '{new_file_name}', but it does not exist in '{root_folder_path}'"
351
+
f"The following file does not the test_data_cache {cache.base_directory_name}:\n"
352
+
f"\tFile: {new_file_name}"
350
353
)
351
354
returnnew_file_path
352
355
356
+
print("raising here\n")
357
+
x="\n\t".join(
358
+
[
359
+
f"base_url{index:02}: {url}"
360
+
forindex, urlinenumerate(
361
+
[cache.base_urlforcacheinself.test_data_caches]
362
+
)
363
+
]
364
+
)
353
365
raiseValueError(
354
-
f"Test data file '{filename}' does not exist in ANY of the following caches. If you are supplying caches, any HTTP file MUST be located in a cache: [{[cache.base_directory_nameforcacheinself.test_data_caches]}]"
366
+
"Test data file does not start with any of the following base_url's. If you are supplying caches, any HTTP file MUST be located in a cache:\n"
0 commit comments