Rest API - API Testing and Monitoring
You wrote this integration test code:
response = requests.get('http://api.example.com/items')
assert response.status_code == 200
assert response.json()['items']
But the test fails with a KeyError on 'items'. What is the likely cause?