I have a function that takes a link as input, then requests values, then puts them in an available list, this function doesn't return anything, how can I write test cases for them? For example:
list = []
def myfunc(link):
[code block]
list.append(value)
listto[], then callmyfunc, then verify the contents of that global variable. BTW, I'd recommend using a different name for that variable, aslistis a "reserved keyword" (which you are overriding when you use this variable name).globalin the test function.