@@ -268,6 +268,14 @@ def test_should_postgres_array_convert_list():
268268 )
269269 assert isinstance (field .type , graphene .NonNull )
270270 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 )
271279 assert field .type .of_type .of_type == graphene .String
272280
273281
@@ -279,6 +287,15 @@ def test_should_postgres_array_multiple_convert_list():
279287 assert isinstance (field .type , graphene .NonNull )
280288 assert isinstance (field .type .of_type , graphene .List )
281289 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 )
282299 assert field .type .of_type .of_type .of_type == graphene .String
283300
284301
@@ -299,4 +316,5 @@ def test_should_postgres_range_convert_list():
299316 field = assert_conversion (IntegerRangeField , graphene .List )
300317 assert isinstance (field .type , graphene .NonNull )
301318 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