From 9f33043bef80b353276c0cd8042a0985b25182c9 Mon Sep 17 00:00:00 2001 From: Taylor Sanderson Date: Sun, 3 Dec 2023 12:24:24 -0500 Subject: [PATCH] revert one of roberts changes and mine --- API Testing Lab/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"}