@@ -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,15 @@ 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 , 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 )
324341 assert field .type .of_type .of_type .of_type == graphene .String
325342
326343
@@ -341,7 +358,8 @@ def test_should_postgres_range_convert_list():
341358 field = assert_conversion (IntegerRangeField , graphene .List )
342359 assert isinstance (field .type , graphene .NonNull )
343360 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
345363
346364
347365def test_generate_enum_name (graphene_settings ):
0 commit comments