plain-engine-91215
01/23/2023, 9:08 PMimport json
def get_module_json(module, file_name):
"""
Helped method to load a file
"""
file_name = "tests/" + module + "/jsons/" + file_name
with open(file_name) as file:
return json.load(file)
We're using this to load json payloads from various locations but since we're loading them like this pants is unable to detect these files and hence does not include them in the sandbox. So I need to know how I can include all files in my tests folder in pants sandbox (at least all json files). Thanks in advance.crooked-country-1937
01/23/2023, 9:14 PMplain-engine-91215
01/23/2023, 9:17 PMhappy-kitchen-89482
01/23/2023, 11:19 PMhappy-kitchen-89482
01/23/2023, 11:20 PMfiles()
target, but this explains why you need an explicit dep on it)