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 @@ -879,7 +879,10 @@ def test_from_router(self):
879
879
880
880
generator = SchemaGenerator (title = 'Naming Colisions' , patterns = patterns )
881
881
schema = generator .get_schema ()
882
- desc = schema ['detail_0' ].description # not important here
882
+
883
+ # note important here
884
+ desc_0 = schema ['detail' ]['detail_export' ].description
885
+ desc_1 = schema ['detail_0' ].description
883
886
884
887
expected = coreapi .Document (
885
888
url = '' ,
@@ -889,12 +892,12 @@ def test_from_router(self):
889
892
'detail_export' : coreapi .Link (
890
893
url = '/from-routercollision/detail/export/' ,
891
894
action = 'get' ,
892
- description = desc )
895
+ description = desc_0 )
893
896
},
894
897
'detail_0' : coreapi .Link (
895
898
url = '/from-routercollision/detail/' ,
896
899
action = 'get' ,
897
- description = desc
900
+ description = desc_1
898
901
)
899
902
}
900
903
)
You can’t perform that action at this time.
0 commit comments