mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-23 09:51:59 +01:00
Add permission assignment to custom test methods
This commit is contained in:
@@ -58,6 +58,7 @@ class ProviderTest(APIViewTestCases.APIViewTestCase):
|
||||
)
|
||||
Graph.objects.bulk_create(graphs)
|
||||
|
||||
self.add_permissions('circuits.view_provider')
|
||||
url = reverse('circuits-api:provider-graphs', kwargs={'pk': provider.pk})
|
||||
response = self.client.get(url, **self.header)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user