File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -949,7 +949,10 @@ def test_from_router(self):
949
949
950
950
generator = SchemaGenerator (title = 'Naming Colisions' , patterns = patterns )
951
951
schema = generator .get_schema ()
952
- desc = schema ['detail_0' ].description # not important here
952
+
953
+ # not important here
954
+ desc_0 = schema ['detail' ]['detail_export' ].description
955
+ desc_1 = schema ['detail_0' ].description
953
956
954
957
expected = coreapi .Document (
955
958
url = '' ,
@@ -959,12 +962,12 @@ def test_from_router(self):
959
962
'detail_export' : coreapi .Link (
960
963
url = '/from-routercollision/detail/export/' ,
961
964
action = 'get' ,
962
- description = desc )
965
+ description = desc_0 )
963
966
},
964
967
'detail_0' : coreapi .Link (
965
968
url = '/from-routercollision/detail/' ,
966
969
action = 'get' ,
967
- description = desc
970
+ description = desc_1
968
971
)
969
972
}
970
973
)
You can’t perform that action at this time.
0 commit comments