Skip to content

Commit

Permalink
Fixup schema test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan P Kilby committed Dec 22, 2017
1 parent 046bf8a commit ec92bc3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_schemas.py
Expand Up @@ -949,7 +949,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='',
Expand All @@ -959,12 +962,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
)
}
)
Expand Down

0 comments on commit ec92bc3

Please sign in to comment.