@@ -310,6 +310,14 @@ def test_should_postgres_array_convert_list():
310310 )
311311 assert isinstance (field .type , graphene .NonNull )
312312 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 )
313321 assert field .type .of_type .of_type == graphene .String
314322
315323
@@ -321,6 +329,17 @@ def test_should_postgres_array_multiple_convert_list():
321329 assert isinstance (field .type , graphene .NonNull )
322330 assert isinstance (field .type .of_type , graphene .List )
323331 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 ,
337+ graphene .List ,
338+ ArrayField (models .CharField (max_length = 100 , null = True )),
339+ )
340+ assert isinstance (field .type , graphene .NonNull )
341+ assert isinstance (field .type .of_type , graphene .List )
342+ assert isinstance (field .type .of_type .of_type , graphene .List )
324343 assert field .type .of_type .of_type .of_type == graphene .String
325344
326345
@@ -341,7 +360,8 @@ def test_should_postgres_range_convert_list():
341360 field = assert_conversion (IntegerRangeField , graphene .List )
342361 assert isinstance (field .type , graphene .NonNull )
343362 assert isinstance (field .type .of_type , graphene .List )
344- assert field .type .of_type .of_type == graphene .Int
363+ assert isinstance (field .type .of_type .of_type , graphene .NonNull )
364+ assert field .type .of_type .of_type .of_type == graphene .Int
345365
346366
347367def test_generate_enum_name (graphene_settings ):
0 commit comments