mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
12589 export objects test fixes
This commit is contained in:
parent
0fee7b71ff
commit
ef4e9bd0d8
@ -407,15 +407,15 @@ class NetBoxUserBulkImportView(generic.BulkImportView):
|
||||
return get_permission_for_model(User, 'add')
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
breakpoint()
|
||||
# breakpoint()
|
||||
return super().dispatch(request, *args, **kwargs)
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
breakpoint()
|
||||
# breakpoint()
|
||||
return super().get(request, *args, **kwargs)
|
||||
|
||||
def post(self, request, *args, **kwargs):
|
||||
breakpoint()
|
||||
# breakpoint()
|
||||
return super().post(request, *args, **kwargs)
|
||||
|
||||
|
||||
|
@ -468,7 +468,7 @@ class ViewTestCases:
|
||||
self.assertIn(instance1.get_absolute_url(), content)
|
||||
self.assertNotIn(instance2.get_absolute_url(), content)
|
||||
|
||||
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*'])
|
||||
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*', 'auth.user', 'auth.group'])
|
||||
def test_export_objects(self):
|
||||
url = self._get_url('list')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user