1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix tests

This commit is contained in:
Jeremy Stretch
2020-12-01 12:01:10 -05:00
parent 915cf3e715
commit ef77961cf4
4 changed files with 37 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ class ObjectPermissionTest(APIViewTestCases.APIViewTestCase):
object_type = ContentType.objects.get(app_label='dcim', model='device')
for i in range(0, 3):
for i in range(3):
objectpermission = ObjectPermission(
name=f'Permission {i+1}',
actions=['view', 'add', 'change', 'delete'],