I am currently working on pytests, and for the expected results, which are in form of tuples, or lists are making the pytest classes look clunky.
This is not a duplicate question. In no other solutions they portray for txt file.
For example, the answer to this question for a json file is:
path = "C:\\my_file.json"
my_var = json.load(open(path))
Likewise, how to do it for tuples, or lists?
Is storing in a .txt file a good option? If so how to assign the entire context correctly to a variable?