i want to make a test function to see if the result from a function returns a dictionary. How would a function with pytest work with this?
Context: The first function is on another file on my computer under the folder called youtube, there is a file called diagnostics.
def test_analisys(entries):
if diagnostics.analisys ...:
return True
msg = "Type incorrect"
assert diagnostics.analisys(entries, 100000) == 962, msg
this is how my idea would be, test if the function returns a dict, if it doesn't say this message