mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
Fix tests
This commit is contained in:
parent
85cef9931f
commit
539b42bb2b
@ -451,7 +451,7 @@ class ImageAttachmentFilterSet(ChangeLoggedModelFilterSet):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = ImageAttachment
|
model = ImageAttachment
|
||||||
fields = ('id', 'object_type_id', 'object_id', 'name', 'image_width', 'image_height')
|
fields = ('id', 'object_type_id', 'object_id', 'name', 'description', 'image_width', 'image_height')
|
||||||
|
|
||||||
def search(self, queryset, name, value):
|
def search(self, queryset, name, value):
|
||||||
if not value.strip():
|
if not value.strip():
|
||||||
|
@ -579,7 +579,7 @@ class ImageAttachmentTest(
|
|||||||
APIViewTestCases.GraphQLTestCase
|
APIViewTestCases.GraphQLTestCase
|
||||||
):
|
):
|
||||||
model = ImageAttachment
|
model = ImageAttachment
|
||||||
brief_fields = ['display', 'id', 'image', 'name', 'url']
|
brief_fields = ['description', 'display', 'id', 'image', 'name', 'url']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpTestData(cls):
|
def setUpTestData(cls):
|
||||||
|
Loading…
Reference in New Issue
Block a user