Allowing the role-user associated to be updated. (#396)

* Allowing the role-user associated to be updated.

* Fixing tests

* Fixing tests, for real.
This commit is contained in:
kevgliss
2016-07-07 13:03:10 -07:00
committed by GitHub
parent 1ba7181067
commit 4f3dc5422c
5 changed files with 8 additions and 11 deletions

View File

@ -70,8 +70,8 @@ def test_role_put(client, token, status):
(VALID_ADMIN_HEADER_TOKEN, 200),
('', 401)
])
def test_role_delete(client, token, status):
assert client.delete(api.url_for(Roles, role_id=1), headers=token).status_code == status
def test_role_delete(client, token, status, role):
assert client.delete(api.url_for(Roles, role_id=role.id), headers=token).status_code == status
@pytest.mark.parametrize("token,status", [