mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 08:38:16 -06:00
7025 fix api tests
This commit is contained in:
parent
3d6548aa43
commit
6067da42ab
@ -84,10 +84,10 @@ class CircuitGroupSerializer(NetBoxModelSerializer):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = CircuitGroup
|
model = CircuitGroup
|
||||||
fields = [
|
fields = [
|
||||||
'id', 'url', 'display_url', 'display', 'name', 'slug', 'description',
|
'id', 'url', 'display_url', 'display', 'name', 'slug', 'description', 'tenant',
|
||||||
'tags', 'custom_fields', 'created', 'last_updated',
|
'tags', 'custom_fields', 'created', 'last_updated',
|
||||||
]
|
]
|
||||||
brief_fields = ('id', 'url', 'display', 'name', 'slug',)
|
brief_fields = ('id', 'url', 'display', 'name', 'slug', 'description')
|
||||||
|
|
||||||
|
|
||||||
class CircuitGroupAssignmentSerializer(NetBoxModelSerializer):
|
class CircuitGroupAssignmentSerializer(NetBoxModelSerializer):
|
||||||
|
@ -100,8 +100,8 @@ class CircuitType(NetBoxObjectType, ContactsMixin):
|
|||||||
fields='__all__',
|
fields='__all__',
|
||||||
filters=CircuitGroupFilter
|
filters=CircuitGroupFilter
|
||||||
)
|
)
|
||||||
class CircuitGroupType(NetBoxObjectType):
|
class CircuitGroupType(OrganizationalObjectType):
|
||||||
pass
|
tenant: TenantType | None
|
||||||
|
|
||||||
|
|
||||||
@strawberry_django.type(
|
@strawberry_django.type(
|
||||||
|
@ -208,9 +208,9 @@ class CircuitTerminationTest(APIViewTestCases.APIViewTestCase):
|
|||||||
|
|
||||||
class CircuitGroupTest(APIViewTestCases.APIViewTestCase):
|
class CircuitGroupTest(APIViewTestCases.APIViewTestCase):
|
||||||
model = CircuitGroup
|
model = CircuitGroup
|
||||||
brief_fields = ['id', 'url', 'display', 'name']
|
brief_fields = ['description', 'display', 'id', 'name', 'slug', 'url']
|
||||||
bulk_update_data = {
|
bulk_update_data = {
|
||||||
'comments': 'New comments',
|
'description': 'New description',
|
||||||
}
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user