mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
#4837: Fix API tests
This commit is contained in:
@ -68,7 +68,7 @@ class Mixins:
|
|||||||
|
|
||||||
class RegionTest(APIViewTestCases.APIViewTestCase):
|
class RegionTest(APIViewTestCases.APIViewTestCase):
|
||||||
model = Region
|
model = Region
|
||||||
brief_fields = ['id', 'name', 'site_count', 'slug', 'url']
|
brief_fields = ['_depth', 'id', 'name', 'site_count', 'slug', 'url']
|
||||||
create_data = [
|
create_data = [
|
||||||
{
|
{
|
||||||
'name': 'Region 4',
|
'name': 'Region 4',
|
||||||
@ -155,7 +155,7 @@ class SiteTest(APIViewTestCases.APIViewTestCase):
|
|||||||
|
|
||||||
class RackGroupTest(APIViewTestCases.APIViewTestCase):
|
class RackGroupTest(APIViewTestCases.APIViewTestCase):
|
||||||
model = RackGroup
|
model = RackGroup
|
||||||
brief_fields = ['id', 'name', 'rack_count', 'slug', 'url']
|
brief_fields = ['_depth', 'id', 'name', 'rack_count', 'slug', 'url']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpTestData(cls):
|
def setUpTestData(cls):
|
||||||
|
@ -16,7 +16,7 @@ class AppTest(APITestCase):
|
|||||||
|
|
||||||
class TenantGroupTest(APIViewTestCases.APIViewTestCase):
|
class TenantGroupTest(APIViewTestCases.APIViewTestCase):
|
||||||
model = TenantGroup
|
model = TenantGroup
|
||||||
brief_fields = ['id', 'name', 'slug', 'tenant_count', 'url']
|
brief_fields = ['_depth', 'id', 'name', 'slug', 'tenant_count', 'url']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpTestData(cls):
|
def setUpTestData(cls):
|
||||||
|
Reference in New Issue
Block a user