Explorar o código

9856 fix test imagefield

Arthur %!s(int64=2) %!d(string=hai) anos
pai
achega
7fa36cada5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/utilities/testing/api.py

+ 1 - 1
netbox/utilities/testing/api.py

@@ -453,7 +453,7 @@ class APIViewTestCases:
 
             for field in type_class.__strawberry_definition__.fields:
                 if (
-                    type(field.type) in (
+                    field.type in (
                         strawberry_django.fields.types.DjangoFileType, strawberry_django.fields.types.DjangoImageType) or
                     type(field.type) is StrawberryOptional and field.type.of_type in (
                         strawberry_django.fields.types.DjangoFileType, strawberry_django.fields.types.DjangoImageType)