Fixed test_users_resources test

remotes/origin/enhancement/email-actions
Jesús Espino 2014-07-31 12:46:43 +02:00
parent cb66dc168f
commit c0c05c7d33
1 changed files with 2 additions and 5 deletions

View File

@ -113,17 +113,14 @@ def test_user_create(client, data):
users = [
None,
data.registered_user,
data.other_user,
data.superuser,
]
create_data = json.dumps({
"username": "test",
"full_name": "test",
})
results = helper_test_http_method(client, 'post', url, create_data, users, lambda: User.objects.filter(username="test").delete())
assert results == [201, 201, 201, 201]
results = helper_test_http_method(client, 'post', url, create_data, users)
assert results == [201]
def test_user_patch(client, data):