mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 09:28:38 -06:00
Remove duplicate test method
This commit is contained in:
parent
f83e435a90
commit
830fd5f83a
@ -207,13 +207,6 @@ class ViewTestCases:
|
|||||||
# Try GET to non-permitted object
|
# Try GET to non-permitted object
|
||||||
self.assertHttpStatus(self.client.get(instance2.get_absolute_url()), 404)
|
self.assertHttpStatus(self.client.get(instance2.get_absolute_url()), 404)
|
||||||
|
|
||||||
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*'])
|
|
||||||
def test_get_object_anonymous(self):
|
|
||||||
# Make the request as an unauthenticated user
|
|
||||||
self.client.logout()
|
|
||||||
response = self.client.get(self.model.objects.first().get_absolute_url())
|
|
||||||
self.assertHttpStatus(response, 200)
|
|
||||||
|
|
||||||
class CreateObjectViewTestCase(ModelViewTestCase):
|
class CreateObjectViewTestCase(ModelViewTestCase):
|
||||||
"""
|
"""
|
||||||
Create a single new instance.
|
Create a single new instance.
|
||||||
|
Loading…
Reference in New Issue
Block a user