mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
Fix the initial permissions check on create/edit view tests
This commit is contained in:
parent
a755b603ea
commit
8b30972836
@ -275,7 +275,7 @@ class ViewTestCases:
|
||||
|
||||
# Try GET without permission
|
||||
with disable_warnings('django.request'):
|
||||
self.assertHttpStatus(self.client.post(self._get_url('add')), 403)
|
||||
self.assertHttpStatus(self.client.get(self._get_url('add')), 403)
|
||||
|
||||
# Try POST without permission
|
||||
request = {
|
||||
@ -360,7 +360,7 @@ class ViewTestCases:
|
||||
|
||||
# Try GET without permission
|
||||
with disable_warnings('django.request'):
|
||||
self.assertHttpStatus(self.client.post(self._get_url('edit', instance)), 403)
|
||||
self.assertHttpStatus(self.client.get(self._get_url('edit', instance)), 403)
|
||||
|
||||
# Try POST without permission
|
||||
request = {
|
||||
|
Loading…
Reference in New Issue
Block a user