mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -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')
|
return get_permission_for_model(User, 'add')
|
||||||
|
|
||||||
def dispatch(self, request, *args, **kwargs):
|
def dispatch(self, request, *args, **kwargs):
|
||||||
breakpoint()
|
# breakpoint()
|
||||||
return super().dispatch(request, *args, **kwargs)
|
return super().dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
breakpoint()
|
# breakpoint()
|
||||||
return super().get(request, *args, **kwargs)
|
return super().get(request, *args, **kwargs)
|
||||||
|
|
||||||
def post(self, request, *args, **kwargs):
|
def post(self, request, *args, **kwargs):
|
||||||
breakpoint()
|
# breakpoint()
|
||||||
return super().post(request, *args, **kwargs)
|
return super().post(request, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
@ -468,7 +468,7 @@ class ViewTestCases:
|
|||||||
self.assertIn(instance1.get_absolute_url(), content)
|
self.assertIn(instance1.get_absolute_url(), content)
|
||||||
self.assertNotIn(instance2.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):
|
def test_export_objects(self):
|
||||||
url = self._get_url('list')
|
url = self._get_url('list')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user