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