@@ -241,7 +241,7 @@ class A(DjangoObjectType):
241
241
class Meta :
242
242
model = Article
243
243
244
- graphene_field = convert_django_field (Reporter .articles .rel ,
244
+ graphene_field = convert_django_field (Reporter .articles .rel ,
245
245
A ._meta .registry )
246
246
assert isinstance (graphene_field , graphene .Dynamic )
247
247
dynamic_field = graphene_field .get_type ()
@@ -270,6 +270,14 @@ def test_should_postgres_array_convert_list():
270
270
)
271
271
assert isinstance (field .type , graphene .NonNull )
272
272
assert isinstance (field .type .of_type , graphene .List )
273
+ assert isinstance (field .type .of_type .of_type , graphene .NonNull )
274
+ assert field .type .of_type .of_type .of_type == graphene .String
275
+
276
+ field = assert_conversion (
277
+ ArrayField , graphene .List , models .CharField (max_length = 100 , null = True )
278
+ )
279
+ assert isinstance (field .type , graphene .NonNull )
280
+ assert isinstance (field .type .of_type , graphene .List )
273
281
assert field .type .of_type .of_type == graphene .String
274
282
275
283
@@ -281,6 +289,15 @@ def test_should_postgres_array_multiple_convert_list():
281
289
assert isinstance (field .type , graphene .NonNull )
282
290
assert isinstance (field .type .of_type , graphene .List )
283
291
assert isinstance (field .type .of_type .of_type , graphene .List )
292
+ assert isinstance (field .type .of_type .of_type .of_type , graphene .NonNull )
293
+ assert field .type .of_type .of_type .of_type .of_type == graphene .String
294
+
295
+ field = assert_conversion (
296
+ ArrayField , graphene .List , ArrayField (models .CharField (max_length = 100 , null = True ))
297
+ )
298
+ assert isinstance (field .type , graphene .NonNull )
299
+ assert isinstance (field .type .of_type , graphene .List )
300
+ assert isinstance (field .type .of_type .of_type , graphene .List )
284
301
assert field .type .of_type .of_type .of_type == graphene .String
285
302
286
303
@@ -301,4 +318,5 @@ def test_should_postgres_range_convert_list():
301
318
field = assert_conversion (IntegerRangeField , graphene .List )
302
319
assert isinstance (field .type , graphene .NonNull )
303
320
assert isinstance (field .type .of_type , graphene .List )
304
- assert field .type .of_type .of_type == graphene .Int
321
+ assert isinstance (field .type .of_type .of_type , graphene .NonNull )
322
+ assert field .type .of_type .of_type .of_type == graphene .Int
0 commit comments