mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Fixed tests to match recent API serializer tweaks
This commit is contained in:
parent
901d877098
commit
d29549206b
@ -205,14 +205,10 @@ class DeviceTypeTest(APITestCase):
|
|||||||
'model',
|
'model',
|
||||||
'slug',
|
'slug',
|
||||||
'u_height',
|
'u_height',
|
||||||
|
'is_full_depth',
|
||||||
'is_console_server',
|
'is_console_server',
|
||||||
'is_pdu',
|
'is_pdu',
|
||||||
'is_network_device',
|
'is_network_device',
|
||||||
'console_port_templates',
|
|
||||||
'cs_port_templates',
|
|
||||||
'interface_templates',
|
|
||||||
'power_outlet_templates',
|
|
||||||
'power_port_templates',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
nested_fields = [
|
nested_fields = [
|
||||||
@ -324,7 +320,7 @@ class DeviceTest(APITestCase):
|
|||||||
'comments',
|
'comments',
|
||||||
]
|
]
|
||||||
|
|
||||||
nested_fields = ['id', 'name']
|
nested_fields = ['id', 'name', 'display_name']
|
||||||
|
|
||||||
def test_get_list(self, endpoint='/api/dcim/devices/'):
|
def test_get_list(self, endpoint='/api/dcim/devices/'):
|
||||||
response = self.client.get(endpoint)
|
response = self.client.get(endpoint)
|
||||||
|
Loading…
Reference in New Issue
Block a user