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 @@ -843,7 +843,10 @@ def test_from_router(self):
843
843
844
844
generator = SchemaGenerator (title = 'Naming Colisions' , patterns = patterns )
845
845
schema = generator .get_schema ()
846
- desc = schema ['detail_0' ].description # not important here
846
+
847
+ # note important here
848
+ desc_0 = schema ['detail' ]['detail_export' ].description
849
+ desc_1 = schema ['detail_0' ].description
847
850
848
851
expected = coreapi .Document (
849
852
url = '' ,
@@ -853,12 +856,12 @@ def test_from_router(self):
853
856
'detail_export' : coreapi .Link (
854
857
url = '/from-routercollision/detail/export/' ,
855
858
action = 'get' ,
856
- description = desc )
859
+ description = desc_0 )
857
860
},
858
861
'detail_0' : coreapi .Link (
859
862
url = '/from-routercollision/detail/' ,
860
863
action = 'get' ,
861
- description = desc
864
+ description = desc_1
862
865
)
863
866
}
864
867
)
You can’t perform that action at this time.
0 commit comments