Tdd Test Shows Error Even Though Response Is Correct
I am following a tutorial about api here and I am following the exact code and I am also adapting the code for an Etsy app, here is my code for the second test, the tutorial code i
Solution 1:
The test is failing because there's no id
key in the response JSON, not in the URL. You should always use dict.get(key)
to retrieve values from a dict, as using dict[key]
throws KeyError if key
isn't in dict.
Post a Comment for "Tdd Test Shows Error Even Though Response Is Correct"