Updating bulk param names in tests
parent
7944c36e6b
commit
cfec7e12e2
|
@ -255,6 +255,7 @@ def test_task_patch(client, data):
|
||||||
results = helper_test_http_method(client, 'patch', private_url2, patch_data, users)
|
results = helper_test_http_method(client, 'patch', private_url2, patch_data, users)
|
||||||
assert results == [401, 403, 403, 200, 200]
|
assert results == [401, 403, 403, 200, 200]
|
||||||
|
|
||||||
|
|
||||||
def test_task_action_bulk_create(client, data):
|
def test_task_action_bulk_create(client, data):
|
||||||
url = reverse('tasks-bulk-create')
|
url = reverse('tasks-bulk-create')
|
||||||
|
|
||||||
|
@ -267,28 +268,28 @@ def test_task_action_bulk_create(client, data):
|
||||||
]
|
]
|
||||||
|
|
||||||
bulk_data = json.dumps({
|
bulk_data = json.dumps({
|
||||||
"bulkTasks": "test1\ntest2",
|
"bulk_tasks": "test1\ntest2",
|
||||||
"usId": data.public_task.user_story.pk,
|
"us_id": data.public_task.user_story.pk,
|
||||||
"projectId": data.public_task.project.pk,
|
"project_id": data.public_task.project.pk,
|
||||||
"sprintId": data.public_task.milestone.pk,
|
"sprint_id": data.public_task.milestone.pk,
|
||||||
})
|
})
|
||||||
results = helper_test_http_method(client, 'post', url, bulk_data, users)
|
results = helper_test_http_method(client, 'post', url, bulk_data, users)
|
||||||
assert results == [401, 403, 403, 200, 200]
|
assert results == [401, 403, 403, 200, 200]
|
||||||
|
|
||||||
bulk_data = json.dumps({
|
bulk_data = json.dumps({
|
||||||
"bulkTasks": "test1\ntest2",
|
"bulk_tasks": "test1\ntest2",
|
||||||
"usId": data.private_task1.user_story.pk,
|
"us_id": data.private_task1.user_story.pk,
|
||||||
"projectId": data.private_task1.project.pk,
|
"project_id": data.private_task1.project.pk,
|
||||||
"sprintId": data.private_task1.milestone.pk,
|
"sprint_id": data.private_task1.milestone.pk,
|
||||||
})
|
})
|
||||||
results = helper_test_http_method(client, 'post', url, bulk_data, users)
|
results = helper_test_http_method(client, 'post', url, bulk_data, users)
|
||||||
assert results == [401, 403, 403, 200, 200]
|
assert results == [401, 403, 403, 200, 200]
|
||||||
|
|
||||||
bulk_data = json.dumps({
|
bulk_data = json.dumps({
|
||||||
"bulkTasks": "test1\ntest2",
|
"bulk_tasks": "test1\ntest2",
|
||||||
"usId": data.private_task2.user_story.pk,
|
"us_id": data.private_task2.user_story.pk,
|
||||||
"projectId": data.private_task2.project.pk,
|
"project_id": data.private_task2.project.pk,
|
||||||
"sprintId": data.private_task2.milestone.pk,
|
"sprint_id": data.private_task2.milestone.pk,
|
||||||
})
|
})
|
||||||
results = helper_test_http_method(client, 'post', url, bulk_data, users)
|
results = helper_test_http_method(client, 'post', url, bulk_data, users)
|
||||||
assert results == [401, 403, 403, 200, 200]
|
assert results == [401, 403, 403, 200, 200]
|
||||||
|
|
Loading…
Reference in New Issue