Skip to content

Commit

Permalink
added one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
Volatar committed Dec 3, 2023
1 parent df0de7c commit e97ee35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions API Testing Lab/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ 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"}
assert response.status_code == 200


def test_put_no_id():
response = requests.put(base + "iceCream/6", data={"name": "Cookies and Creme"})
Expand Down

0 comments on commit e97ee35

Please sign in to comment.