Fixed test_users_resources test
parent
cb66dc168f
commit
c0c05c7d33
|
@ -113,17 +113,14 @@ def test_user_create(client, data):
|
||||||
|
|
||||||
users = [
|
users = [
|
||||||
None,
|
None,
|
||||||
data.registered_user,
|
|
||||||
data.other_user,
|
|
||||||
data.superuser,
|
|
||||||
]
|
]
|
||||||
|
|
||||||
create_data = json.dumps({
|
create_data = json.dumps({
|
||||||
"username": "test",
|
"username": "test",
|
||||||
"full_name": "test",
|
"full_name": "test",
|
||||||
})
|
})
|
||||||
results = helper_test_http_method(client, 'post', url, create_data, users, lambda: User.objects.filter(username="test").delete())
|
results = helper_test_http_method(client, 'post', url, create_data, users)
|
||||||
assert results == [201, 201, 201, 201]
|
assert results == [201]
|
||||||
|
|
||||||
|
|
||||||
def test_user_patch(client, data):
|
def test_user_patch(client, data):
|
||||||
|
|
Loading…
Reference in New Issue