updated tests
This commit is contained in:
parent
a531d135b5
commit
468b986314
@ -76,7 +76,7 @@ def test_add(arg, request, u1_s2):
|
|||||||
print(r.content)
|
print(r.content)
|
||||||
assert r.status_code == arg[1]
|
assert r.status_code == arg[1]
|
||||||
if r.status_code == 201:
|
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'
|
assert response['name'] == 'test'
|
||||||
r = c.get(reverse(DETAIL_URL, args={response['id']}))
|
r = c.get(reverse(DETAIL_URL, args={response['id']}))
|
||||||
assert r.status_code == 200
|
assert r.status_code == 200
|
||||||
|
Loading…
Reference in New Issue
Block a user