diff --git a/API Testing Lab/test.py b/API Testing Lab/test.py index 2c32e25..8a4242a 100644 --- a/API Testing Lab/test.py +++ b/API Testing Lab/test.py @@ -6,7 +6,7 @@ def test_get(): response = requests.get(base + "iceCream/4") - assert response.json() != {"4": "Cookies and Creme"} + assert response.json() == {"4": "Cotton Candy"} assert response.status_code == 200 @@ -21,6 +21,7 @@ def test_put(): assert response.json() == {"4": "Cookies and Creme"} assert response.status_code == 201 + def test_get_again(): response = requests.get(base + "iceCream/4") assert response.json() == {"4": "Cookies and Creme"}