Skip to content

Commit 6ef27c6

Browse files
author
Ryan P Kilby
committed
Fixup schema test
1 parent a9447da commit 6ef27c6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_schemas.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,10 @@ def test_from_router(self):
841841

842842
generator = SchemaGenerator(title='Naming Colisions', patterns=patterns)
843843
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
845848

846849
expected = coreapi.Document(
847850
url='',
@@ -851,12 +854,12 @@ def test_from_router(self):
851854
'detail_export': coreapi.Link(
852855
url='/from-routercollision/detail/export/',
853856
action='get',
854-
description=desc)
857+
description=desc_0)
855858
},
856859
'detail_0': coreapi.Link(
857860
url='/from-routercollision/detail/',
858861
action='get',
859-
description=desc
862+
description=desc_1
860863
)
861864
}
862865
)

0 commit comments

Comments
 (0)