From 468b986314b27a2ddc79b88ab709d73b765a5540 Mon Sep 17 00:00:00 2001 From: smilerz Date: Wed, 14 Apr 2021 13:05:28 -0500 Subject: [PATCH] updated tests --- cookbook/tests/api/test_api_recipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/tests/api/test_api_recipe.py b/cookbook/tests/api/test_api_recipe.py index 243ea161..7506d8ef 100644 --- a/cookbook/tests/api/test_api_recipe.py +++ b/cookbook/tests/api/test_api_recipe.py @@ -76,7 +76,7 @@ def test_add(arg, request, u1_s2): print(r.content) assert r.status_code == arg[1] if r.status_code == 201: - # changed to name - when multiple tests run DB isn't cleared between tests + # id can change when running multiple tests, changed to validate name assert response['name'] == 'test' r = c.get(reverse(DETAIL_URL, args={response['id']})) assert r.status_code == 200