mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
12589 objectpermission test fixes for create check where create new objectpermission
This commit is contained in:
parent
8e57521f3e
commit
4e418ba7f0
@ -840,6 +840,9 @@ class ViewTestCases:
|
||||
|
||||
# Attempt to bulk delete non-permitted objects
|
||||
self.assertHttpStatus(self.client.post(self._get_url('bulk_delete'), data), 302)
|
||||
if self.model == ObjectPermission:
|
||||
# if this test is for ObjectPermission we just created another one
|
||||
initial_count += 1
|
||||
self.assertEqual(self._get_queryset().count(), initial_count)
|
||||
|
||||
# Update permission constraints
|
||||
|
Loading…
Reference in New Issue
Block a user