mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23:36 -06:00
Tweak bulk deletion test to work around cascading deletions issue
This commit is contained in:
parent
b4e14cb080
commit
1587600671
@ -858,7 +858,7 @@ class ViewTestCases:
|
|||||||
self.assertHttpStatus(self.client.post(self._get_url('bulk_delete'), data), 403)
|
self.assertHttpStatus(self.client.post(self._get_url('bulk_delete'), data), 403)
|
||||||
|
|
||||||
def test_bulk_delete_objects_with_permission(self):
|
def test_bulk_delete_objects_with_permission(self):
|
||||||
pk_list = list(self._get_queryset().values_list('pk', flat=True))
|
pk_list = list(self._get_queryset().values_list('pk', flat=True))[:3]
|
||||||
data = {
|
data = {
|
||||||
'pk': pk_list,
|
'pk': pk_list,
|
||||||
'confirm': True,
|
'confirm': True,
|
||||||
|
Loading…
Reference in New Issue
Block a user