#4837: Fix API tests

This commit is contained in:
Jeremy Stretch
2020-07-09 12:06:13 -04:00
parent 15525392a2
commit 1692fbf5d8
2 changed files with 3 additions and 3 deletions

View File

@@ -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):