From 6ef27c6efe223d74d3d7cd3a5443421b2eafd68b Mon Sep 17 00:00:00 2001 From: Ryan P Kilby Date: Sat, 18 Nov 2017 00:12:38 -0500 Subject: [PATCH] Fixup schema test --- tests/test_schemas.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_schemas.py b/tests/test_schemas.py index 9374d9afcdd..b53df3d88e7 100644 --- a/tests/test_schemas.py +++ b/tests/test_schemas.py @@ -841,7 +841,10 @@ def test_from_router(self): generator = SchemaGenerator(title='Naming Colisions', patterns=patterns) schema = generator.get_schema() - desc = schema['detail_0'].description # not important here + + # note important here + desc_0 = schema['detail']['detail_export'].description + desc_1 = schema['detail_0'].description expected = coreapi.Document( url='', @@ -851,12 +854,12 @@ def test_from_router(self): 'detail_export': coreapi.Link( url='/from-routercollision/detail/export/', action='get', - description=desc) + description=desc_0) }, 'detail_0': coreapi.Link( url='/from-routercollision/detail/', action='get', - description=desc + description=desc_1 ) } )