@@ -268,6 +268,14 @@ def test_should_postgres_array_convert_list():
268
268
)
269
269
assert isinstance (field .type , graphene .NonNull )
270
270
assert isinstance (field .type .of_type , graphene .List )
271
+ assert isinstance (field .type .of_type .of_type , graphene .NonNull )
272
+ assert field .type .of_type .of_type .of_type == graphene .String
273
+
274
+ field = assert_conversion (
275
+ ArrayField , graphene .List , models .CharField (max_length = 100 , null = True )
276
+ )
277
+ assert isinstance (field .type , graphene .NonNull )
278
+ assert isinstance (field .type .of_type , graphene .List )
271
279
assert field .type .of_type .of_type == graphene .String
272
280
273
281
@@ -279,6 +287,15 @@ def test_should_postgres_array_multiple_convert_list():
279
287
assert isinstance (field .type , graphene .NonNull )
280
288
assert isinstance (field .type .of_type , graphene .List )
281
289
assert isinstance (field .type .of_type .of_type , graphene .List )
290
+ assert isinstance (field .type .of_type .of_type .of_type , graphene .NonNull )
291
+ assert field .type .of_type .of_type .of_type .of_type == graphene .String
292
+
293
+ field = assert_conversion (
294
+ ArrayField , graphene .List , ArrayField (models .CharField (max_length = 100 , null = True ))
295
+ )
296
+ assert isinstance (field .type , graphene .NonNull )
297
+ assert isinstance (field .type .of_type , graphene .List )
298
+ assert isinstance (field .type .of_type .of_type , graphene .List )
282
299
assert field .type .of_type .of_type .of_type == graphene .String
283
300
284
301
@@ -299,4 +316,5 @@ def test_should_postgres_range_convert_list():
299
316
field = assert_conversion (IntegerRangeField , graphene .List )
300
317
assert isinstance (field .type , graphene .NonNull )
301
318
assert isinstance (field .type .of_type , graphene .List )
302
- assert field .type .of_type .of_type == graphene .Int
319
+ assert isinstance (field .type .of_type .of_type , graphene .NonNull )
320
+ assert field .type .of_type .of_type .of_type == graphene .Int
0 commit comments