Jeremy Stretch 5 lat temu
rodzic
commit
1692fbf5d8

+ 2 - 2
netbox/dcim/tests/test_api.py

@@ -68,7 +68,7 @@ class Mixins:
 
 class RegionTest(APIViewTestCases.APIViewTestCase):
     model = Region
-    brief_fields = ['id', 'name', 'site_count', 'slug', 'url']
+    brief_fields = ['_depth', 'id', 'name', 'site_count', 'slug', 'url']
     create_data = [
         {
             'name': 'Region 4',
@@ -155,7 +155,7 @@ class SiteTest(APIViewTestCases.APIViewTestCase):
 
 class RackGroupTest(APIViewTestCases.APIViewTestCase):
     model = RackGroup
-    brief_fields = ['id', 'name', 'rack_count', 'slug', 'url']
+    brief_fields = ['_depth', 'id', 'name', 'rack_count', 'slug', 'url']
 
     @classmethod
     def setUpTestData(cls):

+ 1 - 1
netbox/tenancy/tests/test_api.py

@@ -16,7 +16,7 @@ class AppTest(APITestCase):
 
 class TenantGroupTest(APIViewTestCases.APIViewTestCase):
     model = TenantGroup
-    brief_fields = ['id', 'name', 'slug', 'tenant_count', 'url']
+    brief_fields = ['_depth', 'id', 'name', 'slug', 'tenant_count', 'url']
 
     @classmethod
     def setUpTestData(cls):