@@ -310,6 +310,14 @@ def test_should_postgres_array_convert_list():
310
310
)
311
311
assert isinstance (field .type , graphene .NonNull )
312
312
assert isinstance (field .type .of_type , graphene .List )
313
+ assert isinstance (field .type .of_type .of_type , graphene .NonNull )
314
+ assert field .type .of_type .of_type .of_type == graphene .String
315
+
316
+ field = assert_conversion (
317
+ ArrayField , graphene .List , models .CharField (max_length = 100 , null = True )
318
+ )
319
+ assert isinstance (field .type , graphene .NonNull )
320
+ assert isinstance (field .type .of_type , graphene .List )
313
321
assert field .type .of_type .of_type == graphene .String
314
322
315
323
@@ -321,6 +329,15 @@ def test_should_postgres_array_multiple_convert_list():
321
329
assert isinstance (field .type , graphene .NonNull )
322
330
assert isinstance (field .type .of_type , graphene .List )
323
331
assert isinstance (field .type .of_type .of_type , graphene .List )
332
+ assert isinstance (field .type .of_type .of_type .of_type , graphene .NonNull )
333
+ assert field .type .of_type .of_type .of_type .of_type == graphene .String
334
+
335
+ field = assert_conversion (
336
+ ArrayField , graphene .List , ArrayField (models .CharField (max_length = 100 , null = True ))
337
+ )
338
+ assert isinstance (field .type , graphene .NonNull )
339
+ assert isinstance (field .type .of_type , graphene .List )
340
+ assert isinstance (field .type .of_type .of_type , graphene .List )
324
341
assert field .type .of_type .of_type .of_type == graphene .String
325
342
326
343
@@ -341,7 +358,8 @@ def test_should_postgres_range_convert_list():
341
358
field = assert_conversion (IntegerRangeField , graphene .List )
342
359
assert isinstance (field .type , graphene .NonNull )
343
360
assert isinstance (field .type .of_type , graphene .List )
344
- assert field .type .of_type .of_type == graphene .Int
361
+ assert isinstance (field .type .of_type .of_type , graphene .NonNull )
362
+ assert field .type .of_type .of_type .of_type == graphene .Int
345
363
346
364
347
365
def test_generate_enum_name (graphene_settings ):
0 commit comments