Typeerror: List Indices Must Be Integers Or Slices, Not Str On Unit Testing
I have the error as 'TypeError: list indices must be integers or slices, not str ' while running a unit test on the following function. The following function is used to call the m
Solution 1:
As Zenith mentioned in the comment, I should return the response instead of response['predictions'] on the return of the function. Thanks,
Post a Comment for "Typeerror: List Indices Must Be Integers Or Slices, Not Str On Unit Testing"